Hi,
I think this is more a question for jenkinsci-users mailing list... Or are
you in a plugin?

I guess http://localhost:8080/job/theOtherJob/lastBuild/api/json is what
you're looking for.

Cheers

2015-02-07 10:43 GMT+01:00 Irfan Sayed <[email protected]>:

> hi,
>
> i need to access latest build number of another job.
> for ex: i have two jobs A and B
>
> in the job configuration of B job, i am executing one shell script which
> accept one parameter as build number. i need to provide latest build number
> of job A
>
> how can i do that ? is there any rest API which gives the latest build
> number of job
> regards
> irfan
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CACGLCJZC-y3rXm5PHi0FekU0CWXuboZN2CDf9aU1RADk1i9LKA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/CACGLCJZC-y3rXm5PHi0FekU0CWXuboZN2CDf9aU1RADk1i9LKA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS7VEAj8r%3Dys5SFOpLCyXFigTgYg7YZBcMfajax5CPx-Hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to