private void UpdateJobLinkedStatus(string slnPath = null)
        {
            try
            {
                if (string.IsNullOrEmpty(slnPath))
                {
                    slnPath = ServicesContainer.VisualStudioSolutionInfo.SolutionPath;
                }

                SolutionJenkinsJobLink sJob = ApiHandlerSettingsManager.GetJobLink(slnPath);

                UIHelper.InvokeUI(() =>
                {
                    foreach (var job in Jobs)
                    {
                        job.LinkedToCurrentSolution =
                            sJob != null &&
                            string.Equals(job.Url, sJob.JobUrl, System.StringComparison.InvariantCultureIgnoreCase);
                    }
                });
            }
            catch (Exception ex)
            {
                Logger.Log(ex);
            }
        }
예제 #2
0
 public async void StartJenkinsBuildForSolution(string slnPath)
 {
     SolutionJenkinsJobLink sJob = ApiHandlerSettingsManager.GetJobLink(slnPath);
     await ViewModelController.JenkinsManagerViewModel.BuildJob(sJob.JobUrl, sJob.JenkinsServerUrl);
 }