From: Stathis <stat...@gmail.com>
To: Jenkins Users <jenkins...@googlegroups.com>
Sent: Monday, November 21, 2011 2:49 PM
Subject: Retrieving the last successful build number of a job from another job.
On Nov 21, 11:03 pm, Mark Waite <markwa...@yahoo.com> wrote:
> If you can find a way to consume the API output, you can query the job status with the lastSuccessfulBuild tag in the XML output like this:
>
> http://ci.jenkins-ci.org/view/Jenkins%20core/job/jenkins_main_trunk/a...
>
> If you have a build step that will consume that status (python, ruby, perl, etc.), then the API is probably sufficient. If you need that information inside Jenkins at run time, then the API technique may not work for you.
>
> Thanks,
> Mark Waite
>
>
>
>
>
>
>
> >________________________________
> > From: Stathis <stath...@gmail.com>
"This URL returns the build number in text/plain format."
Regards,
Chris
On 21/11/2011 23:03, Mark Waite wrote:
> If you can find a way to consume the API output, you can query the job
> status with the lastSuccessfulBuild tag in the XML output like this:
>
> http://ci.jenkins-ci.org/view/Jenkins%20core/job/jenkins_main_trunk/api/xml
>
> If you have a build step that will consume that status (python, ruby,
> perl, etc.), then the API is probably sufficient. If you need that
> information inside Jenkins at run time, then the API technique may not
> work for you.
>
> Thanks,
> Mark Waite
>
> ------------------------------------------------------------------------
> *From:* Stathis <stat...@gmail.com>
> *To:* Jenkins Users <jenkins...@googlegroups.com>
> *Sent:* Monday, November 21, 2011 2:49 PM
> *Subject:* Retrieving the last successful build number of a job from
Hi Vijay,Which version of J.Build are u using and which is your device spec please
/kanu
/kanu
Maybe I’m answering the wrong question, but if Job-A and Job-B can both do HTTP and read XML, you can get a last stable build number like this:
http://jenkins_server:8080/jenkins/job/Job-A/api/xml?xpath=/*/lastStableBuild/number
assuming that your Jenkins server is on http://jenkins_server:8080/jenkins.
--Rob Mandeville
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com]
On Behalf Of Vijay Srivastava
Sent: Monday, May 14, 2012 8:16 AM
To: jenkins...@googlegroups.com
Subject: Re: Retrieving the last successful build number of a job from another job.
Hi Kanu,
I'm using Jenkins ver. 1.454 using browser client.
regards
On Monday, May 14, 2012 3:06:34 PM UTC+5:30, Kanu wrote:
Hi Vijay,
Which version of J.Build are u using and which is your device spec please
/kanu
On Mon, May 14, 2012 at 12:43 PM, Vijay Srivastava <reach.vijay...@gmail.com> wrote:
Hi,
do you know how can i use http://epfap1q.nam.nsroot.net:7778/job/A/lastStableBuild/buildNumber in another job B configuration ?
On Tuesday, November 22, 2011 3:19:37 AM UTC+5:30, Stathis wrote:
I have two jobs that are independent Job-A and Job-B.
Is there a way to have Job-A know what is the latest successful build
number for Job-B and Job-B know what is the latest successful build
number of Job-A.
Thanks
S.
On Monday, May 14, 2012 3:06:34 PM UTC+5:30, Kanu wrote:
Hi Vijay,
Which version of J.Build are u using and which is your device spec please
/kanu
On Mon, May 14, 2012 at 12:43 PM, Vijay Srivastava <reach.vijay...@gmail.com> wrote:
Hi,
do you know how can i use http://epfap1q.nam.nsroot.net:7778/job/A/lastStableBuild/buildNumber in another job B configuration ?
On Tuesday, November 22, 2011 3:19:37 AM UTC+5:30, Stathis wrote:
I have two jobs that are independent Job-A and Job-B.
Is there a way to have Job-A know what is the latest successful build
number for Job-B and Job-B know what is the latest successful build
number of Job-A.
Thanks
S.