public override void BuildJob(Hudson.Job job) { Uri tempUrl = new Uri(job.Url + BUILD_PATH); logger.DebugFormat("Trying to build job: {0} with url {1} ", job, tempUrl); string response = client.DownloadString(tempUrl); logger.Debug("response" + response); }
private void jobsListView_DoubleClick(object sender, EventArgs e) { ListView.SelectedIndexCollection indexes = jobsListView.SelectedIndices; if (indexes.Count > 0) { Hudson.Job selectedJob = jobs[indexes[0]]; Execute(selectedJob.Url); } }
/// <summary> /// </summary> private void RetrieveJobs() { List <Hudson.SimpleJob> tempJobs = hudson.RetrieveJobs(); foreach (Hudson.SimpleJob simpleJob in tempJobs) { Hudson.Job job = hudson.RetrieveJob(simpleJob.Name); jobs.Add(job); } }
public JobStripMenuItem(Hudson.Job job) : base(string.Format("{0} #{1}", job.DisplayName, job.LastBuild)) { this.Job = job; if (Job.Buildable == false) { Enabled = false; } SetBackColorByLastBuild(); }
public override Hudson.Job RetrieveJob(string jobName) { string jsonMessage = client.DownloadString(CreateJobUri(jobName)); JsonSerializer jsonSerializer = new JsonSerializer(); Hudson.Job job = jsonSerializer.Deserialize <Hudson.Job>(new JsonTextReader(new StringReader(jsonMessage))); logger.Debug("Retrieved job:" + job); return(job); }
private void jobsListView_SelectedIndexChanged(object sender, EventArgs e) { builds.Clear(); ListView.SelectedIndexCollection indexes = jobsListView.SelectedIndices; if (indexes.Count > 0) { Hudson.Job selectedJob = jobs[indexes[0]]; foreach (Hudson.Build build in selectedJob.Builds) { builds.Add(build); } } }
public abstract void BuildJob(Hudson.Job job);
private void CopyJobToListViewItem(int index, ListViewItem item) { Hudson.Job job = jobs[index]; item.SubItems[0].Text = job.DisplayName; item.ToolTipText = CreateToolTipTextForJob(job); }