title: Git environment variables for use in executing Jenkins shell scripts
body: <p>Hope someone can help - I have the following plugin installed in my Jenkins instance - but I don't seem to be able to get hold of the Git variables below. I need these to complete our CI setup. Is there something that I'm missing?</p>
  
  <p>I'm passing them in like:</p>
  
  <p>ssh builder@10.10.10.10 "./build-pass.sh $GIT_BRANCH"</p>
  
  <pre><code>https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
  </code></pre>
  
  <h2>Environment variables</h2>
  
  <p>The git plugin sets several environment variables you can use in your scripts:</p>
  
  <ul>
  <li><p>GIT_COMMIT - SHA of the current</p></li>
  <li><p>GIT_BRANCH - Name of the branch currently being used, e.g. "master" or "origin/foo"</p></li>
  <li><p>GIT_AUTHOR_EMAIL - Committer/Author Email</p></li>
  <li><p>GIT_COMMITTER_EMAIL - Committer/Author Email</p></li>
  </ul>