On Monday, September 19, 2016 at 2:54:15 PM UTC-5, Robert Kruck wrote: > > Is it possible to preserve the integrity of build numbers (NO DUPLICATES > and build numbers in order) while building in multiple Jenkins build > servers? > > If this capability exists in Jenkins, what Jenkins plugins are required, > and what versions of Jenkins itself, and of the required Jenkins plugins, > are needed? >
Would the simplest solution to maintain build number integrity across multiple Jenkins servers be to: a) Create a versioned ini file (in our case, a StarTeam file in a *.ini format), containing the latest 5-digit build number. b) The above StarTeam file would be visible to all our build scripts, no matter what Jenkins server they were located in. c) When a build script is under way, it would do an EXCLUSIVE checkout of the StarTeam build number ini file. (Perhaps a wait time could be added to this checkout step, in case the above file was checked-out & locked at the time by another build script). d) The build script increments the build number in the build number ini file using WriteINI, and uses this incremented build number for its build. e) Finally, the build script checks in the StarTeam build number ini file, so it is unlocked / correctly updated / and visible to other build scripts in other Jenkins servers. 1) Obtaining the build number via a versioned *.ini file would seem to have no problems for an interactive, non-Jenkins build. 2) Would obtaining the build number via a versioned *.ini file, rather than a build number generated by Jenkins, be practical in a build done through Jenkins? 3) Is the above "versioned build number *.ini file" concept reasonable, or would use of Jenkins plugin(s) & Windows Environment variables be the best way to reliably increment, then communicate, build numbers across multiple Jenkins servers? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/26118b34-d8e1-4e5b-b3f4-1eb5eb669159%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.