Search code examples
gitjenkinstags

jenkins trigger build if new tag is released


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?

git jenkins config

Triggering:

build trigger


Solution

  • What do you mean by new tag? Does it has some template name?

    You can surely define it in Advanced --> Refspec -->refs/tags/{tagname} .

    You can even do refs/tags/* for finding really ANY new tags.

    enter image description here