Getting upstream job's build number

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting upstream job's build number

pawanpreeteng
Hi Everyone,

Is there any way to get build number of upstream job. I have many jobs
connected to each other. A  triggers B, B triggers C and so on up to
20 jobs. I do not want to send success email for every project but
want to send email on last downstream build success. But email should
contains links to logs for all upstream builds.

If i get build number of each upstream job, that would be great.


Thanks
Pawan
Reply | Threaded
Open this post in threaded view
|

Re: Getting upstream job's build number

Douglas Borg
You can pass the build number from the upstream job as a parameter using the parameterized build and the parameterized trigger plugin (http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Trigger+Plugin).
Reply | Threaded
Open this post in threaded view
|

Re: Getting upstream job's build number

pawanpreeteng
Douglas, thanks a lot for this trick.

-Pawan

On Wed, Dec 29, 2010 at 11:29 AM, Douglas Borg <[hidden email]> wrote:
You can pass the build number from the upstream job as a parameter using the parameterized build and the parameterized trigger plugin (http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Trigger+Plugin).