In Hudson, how do I get the current build's git commit sha? <p>We are using Hudson with git. We have a build/test server which compiles our project and then a QA server to which we need to deploy.</p> <p>We want to get the current built git commit sha and use it to pull the appropriate commit for deployment on our QA server. </p> <p>Unfortunately it seems that the hudon git plugin does not set the git commit sha in the environment variables (as the svn plugin does in SVN_REVISION for example). How do we get around this?</p> <p>Pointer/ examples will be helpful as I am a hudson noob.</p> <p>Thanks</p>