Version Number Plugin question

2021-03-29 Thread Jenkinsexplorer
Hi everyone,

I intend to use Version Number Plugin to implement following functionality:
version number from  1.0.1 > 1.0.100 > 1.1.1>.
I already know how to increase the version number from 1.0.1 to  1.0.100. 
But I couldn't figure out how to reset number from 100 to 1, I googled a 
lot but there is barely useful solution. And the Jenkins documentation 
doesn't have a very detailed information.

Also, this number is different from the BUILD_NUMBER, which means the 
method "item.updateNextBuildNumber(1)" is not what I need.

Thanks in advance! Any reply would be much appreciated!

Best,

New in Jenkins

-- 
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/424b6019-9e6c-4dce-8b15-eb8edd5b28a1n%40googlegroups.com.


Re: Version Number Plugin question

2021-03-25 Thread 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a8a6465d-93a7-4f13-8aee-96ff1864ea69n%40googlegroups.com.


Re: Version Number Plugin question

2013-07-02 Thread 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Version Number Plugin question

2013-07-02 Thread 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Version Number Plugin question

2013-07-01 Thread 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, }' works beautifully.

0001
0002
0003
etc.

On 01.07.2013, at 22:04, DaveS  wrote:

> Jenkins ver. 1.509.1
> Version Number Plug-In1.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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Version Number Plugin question

2013-07-01 Thread 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.