title: Git Variables in Jenkins Workflow plugin
body: <p>I'd like to access git variables such as <code>GIT_COMMIT</code> and <code>GIT_BRANCH</code> when I have checked out a repository from git further down in the build stream. Currently I find no available variable to access these two parameters.</p>
  
  <pre><code>node {
      git git+ssh://git.com/myproject.git
      echo "$GIT_COMMIT - $BRANCH_NAME"
  }
  </code></pre>
  
  <p>Is such variables available and in case, where would I find them. I don't mind if they are available through some groovy variables or wherever, just that I can access them.</p>
  
  <p>Maybe I lack the debugging skills in Groovy and this is easy to find, but I just can't find it with my limited skills.</p>