Decorate PR analysis to Bitbucket Server failed

This works for me to determine the SHA to be set with the mentioned properties:
def baseCommit = bat(script: "git rev-parse origin/" + env.BRANCH_NAME, returnStdout: true).trim()

1 Like