-
New Feature
-
Resolution: Not A Defect
-
Major
-
None
To get the PR number that triggered the build you have to do a hack like,
curl -sO $BUILD_URL/consoleText GITHUB_PR_NUMBER=$(head -1 consoleText | sed 's/.*pull request #\([0-9]*\) of.*/\1/') echo "GITHUB_PR_NUMBER = $GITHUB_PR_NUMBER"
It would be much better if the GitHub Pull Request Builder Plugin just set an environment variable like GITHUB_PR_NUMBER to the PR number.