Can someone tell me how to setup jenkins to build from a git repo based on a specific tag? I've done some searching and tried to setup a job to build off a specific tag, see: Jenkins Git Plugin: How to build specific tag? but I'm only able to pull the latest commit from the master branch.
This is for jenkins 2.54. I have setup the following under SCM.
Repo URL and Credentials
name: ref
Refspec: +refs/tags*:refs/remotes/origin/tags/*
Branch Specifier refs/tags/jenkins-test*
And under build trigger I have allow all branches to trigger this job. I have a commit tagged with jenkins-test1.0 and when I test the webhook from gitlab, it succesfully kicks off the jenkins job, but its pulling the latest commit from the master branch, and not the tagged commit.
Thanks in advance...