title: how to get git short hash in to a variable in Jenkins running on windows 2008
body: <p>I am trying to get the git short hash in a variable. I tried to set GIT_COMMIT_SHORT variable to run 'git rev-parse --short HEAD' but it didn't work. 
  I need this variable to pass to ant build script so the package name include this short hash.</p>
  
  <p>I am running Jenkins on windows 2008 server.</p>
  
  <p>Thanks</p>