1

I want jenkins to build every github tag on push. I followed these posts

jenkins trigger build if new tag is released
Jenkins Git Plugin: How to build specific tag?
Is it possible for Jenkins to automatically detect and build newly created tags in a git repo?

When I push a tag, it triggers a build but with the wrong commit ID. It uses the latest revision (not even master). Is there a way to select the right commit associated with the tag?

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

branch: */tags/*

also "Build when a change is pushed to GitHub" is selected

Community
  • 1
  • 1
Johnny Brofish
  • 95
  • 1
  • 1
  • 5

0 Answers0