title: trigger jenkins job when a new tag is pushed without new code commit
body: <p>I want to trigger jenkins build if a new tag is pushed to a remote repository. I have seen number of posts, but none seems to be working for me. My build is triggered successfully when I push a tag having new commits in it, but if I push a new tag on old commits it does not trigger the build.</p>
  
  <p>I have configured it using git plugin in Jenkins and adding Refscpec value as <code>+refs/tags/*:refs/remotes/origin/tags/*</code> and Branch specifier as <code>*/tags/*</code></p>
  
  <p>Now if I run:</p>
  
  <pre><code>git push origin master
  git tag release-beta
  git push origin release-beta
  git tag release-prod
  git push origin release-prod
  </code></pre>
  
  <p>Build is triggered successfully for tag release-beta but not for release-prod.</p>
  
  <p>This means jenkins is always looking for commit ids, if there is a new commit id linked with the tag it will build the job. </p>
  
  <p>I want to merge my code to master branch, tag it as 'release-beta' and deploy to beta pipeline. Once beta testing is complete, I want to tag the same code as 'release-prod' and deploy the production pipeline from same jenkins job.</p>