Code Snippet

Just another Code Snippet site

Jenkins/Git : Build new tags

Make the job fetch tags as if they were branches: Click on the Advanced button below the repository URL and enter the
Refspec :

+refs/tags/*:refs/remotes/origin/tags/*

Have it build all tag “branches” with the
Branch Specifier :

*/tags/*

Enable SCM polling, so that the job detects new tags.

The first time the job will start, it will trigger a build for EACH existing tags (one workaround is to remove all build steps for the first builds)

,


Leave a Reply

Your email address will not be published. Required fields are marked *