title: How do you push a git tag in a Jenkins build promotion step?
body: <p>I have a build promotion process modeled after <a href="https://stackoverflow.com/questions/15126059/how-to-promote-a-specific-build-number-from-another-job-in-jenkins">this</a> discussion (using promoted builds plugin.)  In general, it works great.  However, for a few "flavors" of the promotion process (not all) I'd like to push a git tag.  I implemented this with an "execute shell" step as one of the promotion actions. This has been working well, and then today failed with the error below.  I suspect I landed on a build slave where the workspace wasn't already initialized for git - and that I've been getting lucky in the past (using Cloudbees - where the build slaves are dynamically allocated.) </p>
  
  <p>I've tried the "git publisher", but it seems to expect that you are in a setting where the git source plugin has already done its job.  Has anyone been able reliably push a tag from a build promotion step ?</p>
  
  <pre><code>+ git checkout develop
  fatal: Not a git repository (or any of the parent directories): .git
  </code></pre>