--
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/1496868418893-4898876.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.
Would the Next Build Number plugin provide any benefit?It looks like it allows you to control the build number, but it might need two builds to take effect.
On Thu, Jun 8, 2017 at 7:58 AM Derrik Ammons <derrik...@gmail.com> wrote:
pchitale, did you get an answer? I am wondering the same thing. I need to
reset the build number back to 1 if the release version has been
incremented. I have a multibranch pipeline jenkinsfile that kicks off a
build upon commits. When product marketing wants to publish a new release,
the merged code would have gradle file updated for android, and plist files
for iOS with a new version. I read these files after checking out the
source code to see if the build number needs to be reset back to 1. I can't
figure out how to actually set the build number back to 1 from the Mac OS X
agent node building our iOS app.
--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/how-to-reset-build-number-tp1289785p4898876.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1496868418893-4898876.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJM0iSTeApLLDUW44JtnToFLzXb8E7_xc1Un23WXGPsOt3XxdQ%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
The Next Build Number only lets you increment the build number. you can't set it back to anything because the build number is a very integral part of how Jenkins works.
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
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.