private void UpdateJobLinkedStatus(string slnPath = null)
        {
            if (string.IsNullOrEmpty(slnPath))
            {
                slnPath = SolutionManager.Instance.CurrentSolutionPath;
            }

            SolutionJob sJob = SettingManager.GetJobUri(slnPath);

            var allJobs = JOverview.Views.SelectMany((v) => v.Jobs ?? Enumerable.Empty <Job>()).ToArray();

            UIHelper.InvokeUI(() =>
            {
                foreach (var job in allJobs)
                {
                    job.LinkedToCurrentSolution =
                        sJob != null &&
                        string.Equals(job.Url, sJob.JobUrl, System.StringComparison.InvariantCultureIgnoreCase);
                }
            });
        }
Ejemplo n.º 2
0
 public async void StartJenkinsBuildForSolution(string slnPath)
 {
     SolutionJob sJob = SettingManager.GetJobUri(slnPath);
     await ViewModelController.JenkinsManagerViewModel.ScheduleJob(sJob.JobUrl, sJob.JenkinsServerUrl);
 }