jenkins trigger build if new tag is released

Kingalione picture Kingalione · Apr 20, 2015 · Viewed 56.1k times · Source

I want to configure jenkins so that it starts building if a new tag is released in any branch of an git repository. How do I configure this behaviour?

I'm very new in jenkins so excuse me if this might be a very basic question but I couldn't find it out on myself.

git jenkins config

Triggering: build trigger

Thanks for any help

Answer

albertski picture albertski · Aug 17, 2016

Set refspec to: +refs/tags/*:refs/remotes/origin/tags/*

branch specifier: **

Under build triggers check Build when a change is pushed to GitHub