Custom build number in pipeline

53 views
Skip to first unread message

Allen Fisher

unread,
Mar 30, 2017, 12:03:48 PM3/30/17
to jenkins...@googlegroups.com

Hi All—

 

We have a peculiar version numbering scheme that we use for some of our products… it comes from the particular world that our products live in:

 

R02M3210101

 

This “build number” comes from a database lookup after a component is built. The gradle/ant build that packages the build looks up this number no problem and uses it to build the installer. Is it possible to have the gradle build pass this up to the pipeline and set it as the Jenkins build number? I’m looking ahead to when I roll out this system to testers and support and the need to look at a build and know which one it is… the normal Jenkins build number doesn’t convey the right amount of information necessary to post.

 

Thanks!

 

Allen

 

http://static.helpsystems.com/hs/email/templates/signatures-final/images/hs-logo2.png

Allen Fisher 
Build and Release Engineer

http://static.helpsystems.com/hs/email/templates/signatures-final/images/social-linkedin.jpg http://static.helpsystems.com/hs/email/templates/signatures-final/images/social-twitter.jpg

 

 

Mark Waite

unread,
Mar 30, 2017, 12:07:13 PM3/30/17
to jenkins...@googlegroups.com
Wouldn't it be better to set the build description to that value, rather than the build number?  Keeping the build number as entirely managed by Jenkins seems more likely to always generate unique values for the build number.


Mark Waite

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/83cee047f5464ef2905895c3dec6e051%40EDPREXCH01.helpsystems.com.
For more options, visit https://groups.google.com/d/optout.

Allen Fisher

unread,
Apr 4, 2017, 10:00:43 AM4/4/17
to jenkins...@googlegroups.com

Hi Mark—

 

That’s a good point… I’m publishing to Artifactory though, and was hoping to use the build number as a folder name. Looks like the build description is available so I could use that to set the folder on Artifactory.

 

Thanks for the link.

 

Allen

Reply all
Reply to author
Forward
0 new messages