Thanks Shawn. That's a good idea. I'm going to experiment with that a little.
I think I may stop trying to mess with the counter, though, and just try and use the build name setter and a script to calculate the build number and make that the build name. The main requirement is that the build number correspond to a Jenkins build and the build name appears to be a good enough link. If I can get our format into a token, I can stamp the repo tag with the Jenkins build number and ours. Thanks for the help Allen PS I wish I'd have known about this trick at my last job, because there was a non-build number situation where that would have come in quite handy. Allen Fisher www.helpsystems.com<http://www.helpsystems.com> On Oct 17, 2014, at 1:05 PM, Shawn Speer <[email protected]<mailto:[email protected]>> wrote: If you take the path of running a script to generate your version format, you can output the value to an env file and import using the EnvInject<https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin> Plugin as a build step. You can then use this as a job variable throughout your various build steps and post build actions and in turn set the build name (in the build environment section of the job) to be the variable value. On Friday, October 17, 2014 12:23:35 PM UTC-4, Allen Fisher wrote: Hi List-- Working on a new project, taking an existing build scheme and rolling it into Jenkins. I have a peculiar build number scheme I need to implement: <Year in Hex><Month in hex><day><builds_today in hex> So a the 10th build on October 29, 2014 would look like: EA29A I'm guessing we add a digit if we go past the single hex digit (if we start over, I'm going to be pretty annoyed). The project moves pretty slow, so the last digit hardly every goes past 6 I've looked at the version number plugin, and it looks like it could do what I want, but it seems that I can't get a format string to do this. I'm fine running a script, but is there a plugin that would let me run a script and set the build number? Allen Fisher | +1 952-563-2746 www.helpsystems.com<http://www.helpsystems.com/><http://www.helpsystems.com<http://www.helpsystems.com/>> _______________ Confidentiality Notice: This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ________________ _______________ Confidentiality Notice: This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ________________ -- 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.
