I actually have bot the Version Number Plugin and Next Build Number Plugin
and used them both before in jobs before Pipelines came around.

Now that I have a Jenkinsfile for the Mutibranch Pipeline, I am not sure how
to set the Version at build time for Jenkins.  I retrieve the Release Number
from source code (e.g 5.0.1) and want to reset the build number back to 1,
if it's a new release (e.g. 5.1.0 (1) for iOS and 5.1.0.1 for Android).

Both the iOS ipa and the Android apk gets the correct release version when
installing the app, opening the app, and checking the about dialog.  

But, Jenkins thinks the build is located in the last incremented build
directory.  For example, if the previous build was 5.0.5 (24), and the
source code has 5.1.0, the iOS app has 5.1.0.1 but it's the link to the
build artifacts points to build 25 folder, not 1.

It sounds like Daniel Becroft may have an idea... that I might need two
builds to take affect.  I may need to reset the build number and launch the
build again.  Will it reset the build number back to 1 even though I have 24
existing builds for 5.0.5 in my example above, or do I need to delete them? 



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/how-to-reset-build-number-tp1289785p4898934.html
Sent from the Jenkins users mailing list archive at Nabble.com.

-- 
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/1496926533125-4898934.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to