referred https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin -- ORIG_HEAD wasn't available for some reason.