add version number to each artifacts in jenkins

64 views
Skip to first unread message

nagashree ck

unread,
Jan 21, 2015, 4:54:12 AM1/21/15
to jenkins...@googlegroups.com
Hi Friends,

How to add version number to each artifacts in jenkins


Thanks

Ginga, Dick

unread,
Jan 21, 2015, 1:05:24 PM1/21/15
to jenkins...@googlegroups.com

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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nagashree ck

unread,
Jan 23, 2015, 9:52:06 AM1/23/15
to jenkins...@googlegroups.com
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B9x7DS_Pp04/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E766C%40AMERMBX02.PERKINELMER.NET.

nagashree ck

unread,
Jan 23, 2015, 10:01:51 AM1/23/15
to jenkins...@googlegroups.com
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

Ginga, Dick

unread,
Jan 23, 2015, 2:30:44 PM1/23/15
to jenkins...@googlegroups.com

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

nagashree ck

unread,
Jan 27, 2015, 12:49:27 PM1/27/15
to jenkins...@googlegroups.com
Thanks for reply Ginga,

we have two plugins in jenkins like version number plugin and release plugin can you tell me the difference and according my requirement which one i can use.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B9x7DS_Pp04/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET.

Ginga, Dick

unread,
Jan 27, 2015, 8:42:35 PM1/27/15
to jenkins...@googlegroups.com

I do not know the difference because I do not use the release plugin

nagashree ck

unread,
Jan 28, 2015, 4:25:29 AM1/28/15
to jenkins...@googlegroups.com

nagashree ck

unread,
Jan 28, 2015, 4:32:59 AM1/28/15
to jenkins...@googlegroups.com
How to give path for files to archive in jenkins artifacts 

Thanks in Advance

Ginga, Dick

unread,
Jan 28, 2015, 5:38:45 PM1/28/15
to jenkins...@googlegroups.com

From the help button:

 

You can use wildcards like 'module/dist/**/*.zip'. See the includes attribute of Ant fileset for the exact format. The base directory is the workspace. You can only archive files that are located in your workspace.

nagashree ck

unread,
Jan 29, 2015, 7:26:09 AM1/29/15
to jenkins...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages