I don’t think you can change the actual build number of a job programmatically 
but what I do is set the Display name of the later jobs. Pass into the later 
jobs the ${BUILD_NUMBER} of the first. There are a number of ways to set a 
builds display number: use the Version Number plugin, in a Build flow job, use 
setDisplayName on the build object, there is a CLI.,,,

You can manually set the build number “higher” with the Next Build Number 
plugin.

From: [email protected] 
[mailto:[email protected]] On Behalf Of mpc8250
Sent: Tuesday, September 23, 2014 6:11 PM
To: [email protected]
Subject: how to propagate build number from parent job to child job ?

Hi All

We have 3 jobs chained linearly.
We like all 3 jobs to use the same build number using the topmost build number.
However right now, if any of the latter jobs fail and restarted the next time, 
they use their own build number in the job and not the topmost build number.

How do we accomplish that ?


Thank you.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to