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: [email protected] 
[mailto:[email protected]] On Behalf Of nagashree ck
Sent: Friday, January 23, 2015 5:02 AM
To: [email protected]
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: [email protected]<javascript:> 
[mailto:[email protected]<javascript:>] On Behalf Of nagashree ck
Sent: Tuesday, January 20, 2015 11:54 PM
To: [email protected]<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 [email protected]<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 
[email protected]<mailto:[email protected]>.
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 [email protected].
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