Open alhanger opened 7 years ago
https://dengelonsoftware.blogspot.de/2017/01/jenkins-pull-request-and-pipeline.html
Parameters Parameterize the build with the following options: PULL_REQUEST_URL : string PULL_REQUEST_ID: string PULL_REQUEST_TO_BRANCH: string
Need to be added to the Job Configuration
Before our builds run Jenkins executes a Groovy script to set a description for the build which contains a hyperlink back to the pull request, as well as the pull request ID. A link to the pull request is still being set in the description, but the pull request ID is null. Here is the Groovy script.
It is not clear if the resolve() method is returning null, or if the ID is simply not sent in the payload (my hunch is the latter). This recently started occurring after upgrading our version of Webhook to Jenkins. Any help is greatly appreciated.