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. Use the advanced button for git and specify a refspec in the Jenkins that only selects the
![Build last git tag with Jenkins](https://cdn-ak-scissors.b.st-hatena.com/image/square/a68aa4fada464204345c14d36b449b102a6f6b96/height=288;version=1;width=512/http%3A%2F%2Fwww.cyber-tec.org%2Fuploads%2F2015%2F09%2Fjenkins-last-git-tag.png)