Jenkins: how to trigger pipeline on git tag

Viewed 6854

We want to use Jenkins to generate releases/deployments on specific project milestones. Is it possible to trigger a Jenkins Pipeline (defined in a Jenkinsfile or Groovy script) when a tag is pushed to a Git repository?

We host a private Gitlab server, so Github solutions are not applicable to our case.

3 Answers

if you use multibranch pipeline, there is a discover tag. Use that plus Spencer solution

Related