Exemplo 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);
        }
Exemplo 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);
            }
        }
Exemplo 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);
            }
        }
Exemplo 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();
        }
Exemplo 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);
        }
Exemplo 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);
                }
            }
        }
Exemplo n.º 7
0
 public abstract void BuildJob(Hudson.Job job);
Exemplo 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);
 }