Use the $BUILD_NUMBER however you want to create a version string. We use 
version strings of the form a.b.c.d. I pass in a parameter called VERSION_BASE 
that is a.b.c. Then I name my artifacts with $VERSION_BASE.$BUILD_NUMBER.

Also look at the Version Number plugin

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of nagashree ck
Sent: Friday, January 23, 2015 5:02 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: add version number to each artifacts in jenkins

Thanks rginga, i want version number like 1.0 if i make any changes in the same 
version the version number should be 1.1

how i can provide by using $BUILD_NUMBER

On Wednesday, January 21, 2015 at 6:35:24 PM UTC+5:30, rginga wrote:
You will have to do that during the build by naming your artifacts when they 
are created. Jenkins provides $BUILD_NUMBER as a token you can use.

From: jenkins...@googlegroups.com<javascript:> 
[mailto:jenkins...@googlegroups.com<javascript:>] On Behalf Of nagashree ck
Sent: Tuesday, January 20, 2015 11:54 PM
To: jenkins...@googlegroups.com<javascript:>
Subject: add version number to each artifacts in jenkins

Hi Friends,

How to add version number to each artifacts in jenkins


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-use...@googlegroups.com<javascript:>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Reply via email to