Version Number Plugin question

376 views
Skip to first unread message

DaveS

unread,
Jul 1, 2013, 4:04:00 PM7/1/13
to jenkins...@googlegroups.com
Jenkins ver. 1.509.1
Version Number Plug-In    1.4.1

I am sure that the answer to this is easy, but I just haven't got it figured out.  I can't get the version number to increment.  I am trying to use the number to create directories to store files from the different builds.

Environment Variable Name  =  TestVersion
Version Number Format String  =  0001
Don't increment failed builds.

mkdir -p C:/NewBuilds/${TestVersion}


TestVersion is always 0001.  Tell me what I am setting incorrectly.  Thanks.


Daniel Beck

unread,
Jul 1, 2013, 4:24:36 PM7/1/13
to jenkins...@googlegroups.com
Try clicking the question mark next to the 'Version Number Format String' text field, the behavior is well documented.

> The version number format string is used to generate the version number. It will be passed through unaltered, except that any expression of the form ${variable_name, argument} will be replaced according to the table below.


The format string '${BUILDS_ALL_TIME, XXXX}' works beautifully.

0001
0002
0003
etc.
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

DaveS

unread,
Jul 2, 2013, 12:29:16 PM7/2/13
to jenkins...@googlegroups.com
How do you reset the Version Number in BUILD_ALL_TIME to start renumbering.

DaveS

unread,
Jul 2, 2013, 12:55:22 PM7/2/13
to jenkins...@googlegroups.com
I figured out how to reset the numbering, 'Number of builds since the start of the project'

On Monday, July 1, 2013 3:04:00 PM UTC-5, DaveS wrote:

YAOWEN WU

unread,
Mar 25, 2021, 11:41:05 AM3/25/21
to Jenkins Users
Hi everyone,

I try to use a different date(the start of the project), but the BUILD_ALL_TIME is not reset. 

Reply all
Reply to author
Forward
0 new messages