Build last git tag with Jenkins

Sometimes it's required to build the last tag of your software with Jenkins. Mostly I use it to build a last stable release automatically with Jenkins.

I use GitHub for my software so I use by default tags for each release. Every tag contains a version number which could be automatically filtered by Jenkins.

Build last git tag with Jenkins

Use the advanced button for git and specify a refspec in the Jenkins that only selects these tags:


In the branch specifier specify:



September 20, 2015, 9:52 pm


, ,




Send your comment by mail.