Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        /// <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);
            }
        }
Esempio n. 4
0
        public JobStripMenuItem(Hudson.Job job)
            : base(string.Format("{0} #{1}", job.DisplayName, job.LastBuild))
        {
            this.Job = job;

            if (Job.Buildable == false)
            {
                Enabled = false;
            }

            SetBackColorByLastBuild();
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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);
                }
            }
        }
Esempio n. 7
0
 public abstract void BuildJob(Hudson.Job job);
Esempio n. 8
0
 private void CopyJobToListViewItem(int index, ListViewItem item)
 {
     Hudson.Job job = jobs[index];
     item.SubItems[0].Text = job.DisplayName;
     item.ToolTipText      = CreateToolTipTextForJob(job);
 }