phabricator-jenkins-plugin
phabricator-jenkins-plugin copied to clipboard
Plugin doesn't use the commit sha1 in phid for non-differential builds - Update docs
This is evidenced here: https://github.com/uber/phabricator-jenkins-plugin/blob/master/src/main/java/com/uber/jenkins/phabricator/PhabricatorBuildWrapper.java#L87
Yes, it currently assumes you are passing the SHA as another parameter and configuring your SCM plugin to pull the correct SHA. We need some documentation on how this is supposed to be configured, and if possible we should fetch commit metadata and reset to that.
Whoa! didn't know that. Will configure SHA parameter. Does the PHID contain the commit SHA1?
(Thanks for the ultra-quick response)
This is how I set up my test install to verify the functionality:
And then in jenkins, you add a string parameter for SHA
and tell the git plugin to check out that sha