If you want to share a single build number over all branch builds, you will want to configure your job to accept a branch name to be built. Then run as a parameterized build and specify the branch to build. This will give you build numbers like this:
master: 1 master: 2 branch-a: 3 branch-b: 4 master: 5 branch-b: 6 ... Is this what you want? On Tuesday, March 1, 2016 at 12:25:22 AM UTC-7, Amit Bhardwaj wrote: > > Hi, > Thanks for the reply. I went through those links. I believe my requirement > is a bit different from those. > > I would need a universal sequence/build number which can be used by > multiple projects in Jenkins. > > Regards > AB > > On Friday, February 26, 2016 at 8:34:14 PM UTC+5:30, Victor Martinez wrote: >> >> Hi, >> >> You don't need to use Capital Cases at all, lower cases are in good >> shape and easy to read. >> >> Coming back to your questions: >> >> - https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin >> might help you to set those numbers based on token/attributes >> - https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin >> is another way with more granularity >> >> I hope it helps >> >> On Friday, 26 February 2016 13:27:10 UTC, Amit Bhardwaj wrote: >>> >>> Hi Group! >>> >>> I have a requirement where I have 2-3 branches from a common master (say >>> A-dev, B-dev2.0, C-Qa) and I want to run Jenkins for each branch and check >>> stability of my code and binaries. >>> >>> Currently I run Jenkins Project for 'master' branch only and with each >>> build I get a iterative next number as my build number (which is default >>> behavior). But now that I have multiple branches to build, I have to use >>> Jenkins for all branches. >>> >>> I think I will need to create Jenkins Project for all branches but don't >>> know 'HOW CAN I KEEP BUILD NUMBER SEQUENCE" as same. >>> >>> Please let me know how can I achieve this. >>> >>> Regards >>> AB >>> >> >> >> > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7f75c016-ddee-40af-a801-68eb4550996a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
