Version Number Plugin question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Version Number Plugin question

DaveS
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.


--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Version Number Plugin question

Daniel Beck
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.

On 01.07.2013, at 22:04, DaveS <[hidden email]> wrote:

> 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.
>
>
>
> --
> 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 [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Version Number Plugin question

DaveS
In reply to this post by DaveS
How do you reset the Version Number in BUILD_ALL_TIME to start renumbering.

On Monday, July 1, 2013 3:04:00 PM UTC-5, DaveS wrote:
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.


--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Version Number Plugin question

DaveS
In reply to this post by DaveS
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:
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.


--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Version Number Plugin question

YAOWEN WU
Hi everyone,

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

On Tuesday, 2 July 2013 at 17:55:22 UTC+1 DaveS wrote:
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:
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.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a8a6465d-93a7-4f13-8aee-96ff1864ea69n%40googlegroups.com.