That's also a handy technique. :-)

I do the same thing but using the Parameterized trigger with a
generated properties list and Build Flow.

Ben

On 6/26/13, [email protected] <[email protected]> wrote:
> To give an example, we have one master job which calls several other
> sub-jobs in a pipeline fashion. We use a build step in the master job which
> makes the calls below to set the build numbers of the sub-jobs to match the
> master job before it calls them:
>
>
>
> "C:\Program Files (x86)\Curl\curl.exe" -d "nextBuildNumber=%BUILD_NUMBER%"
> http://user:password@localhost:8080/job/SUB_JOB1/nextbuildnumber/submit";
>
> "C:\Program Files (x86)\Curl\curl.exe" -d "nextBuildNumber=%BUILD_NUMBER%"
> "http://user:password@localhost:8080/job/SUB_JOB2/nextbuildnumber/submit";
>
>
>
> Chris Williams
>
> Dell | PG Release Engineering
>
>
>
>
>
> From: [email protected]
> [mailto:[email protected]] On Behalf Of djx339
>
> Sent: Wednesday, June 26, 2013 12:18 PM
>
> To: jenkinsci-users
>
> Subject: Re: Re: How to use the same BUILD_NUM in two different jobs?
>
>
>
> thanks
>
>
>
> From: Benjamin Lau
>
> Date: 2013-06-27 01:16
>
> To: jenkinsci-users
>
> Subject: Re: Re: How to use the same BUILD_NUM in two different jobs?
>
> Next Build Number
>
> https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin
>
> On Jun 26, 2013 1:06 PM, "djx339" <[email protected]> wrote:
>
> can you tell me the plugin name? thanks
>
>
>
>
>
> From: Benjamin Lau
>
> Date: 2013-06-27 01:02
>
> To: jenkinsci-users
>
> Subject: Re: How to use the same BUILD_NUM in two different jobs?
>
> You don't want to do this.  It's an extremely good practice to make sure
> that all build numbers are unique.
>
> But if you want to do this anyway... I think there's a plugin which let's
> you explicitly set the build number. I use it to jump the build number up
> when I make major backward incompatible changes to my build process.
>
> Ben
>
> On Jun 26, 2013 11:42 AM, <[email protected]> wrote:
>
> i have an branch in git repository to fix bug, and coding new features in
> master branch.
>
> my job1 is for branch build to verify bug. job2 is for master build.
>
> i should change the version in every job. and the version is job's
> BUILD_NUM.
>
> so i should use one BUILD_NUM between two jobs.
>
> hao can i do?
>
>
>
> 在 2013年6月26日星期三UTC+8下午11时19分24秒,KT写道:
>
> Your questions seems a bit confusing.  Are you asking how you can make it so
> that the jobs are the same build number?
>
>
>
> Or are you asking how you could make it so that job2 is always 1 build
> number higher than job1?
>
> ________________________________________
>
> From: [email protected]
>
> To: [email protected]
>
> Sent: Wednesday, June 26, 2013 10:10:36 AM
>
> Subject: How to use the same BUILD_NUM in two different jobs?
>
>
>
> I have two jobs in my jenkins, I should use the same BUILD_NUM in two
> different jobs. how can i do?
>
>
>
> eg: job1 BUILD_NUM is 5, when i build job2 the job2's build num should be
> 6.
>
>
>
> Thanks everyone.
>
> --
>
>
> --
> 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/groups/opt_out.
>
>
>

-- 
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/groups/opt_out.


Reply via email to