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.

On Wed, Jun 7, 2017 at 7:30 PM, Daniel Becroft <[email protected]> wrote:

> Would the Next Build Number plugin provide any benefit?
>
> https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin
>
> 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 <[email protected]>
> 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 [email protected].
>> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAJM0iSTeApLLDUW44JtnToFLzXb8E
> 7_xc1Un23WXGPsOt3XxdQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAJM0iSTeApLLDUW44JtnToFLzXb8E7_xc1Un23WXGPsOt3XxdQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dick Ginga
Build Engineer
[email protected]

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAL3PpaUM_Xpgqe5HyyNkZNeJvzZvc8kobEimytXt3-NZo6ccMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to