Change By: Everett Toews (04/Sep/14 10:45 PM)
Description: To get the PR number that triggered the build you have to do a hack like,

{code}
curl -sO $BUILD_URL/consoleText
PR GITHUB_PR_NUMBER =$(head -1 consoleText | sed 's/.*pull request #\([0-9]*\)  to  of .*/\1/')
echo "
PR GITHUB_PR_NUMBER  = $ PR GITHUB_PR_NUMBER "
{code}

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.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to