Closed l3ender closed 1 year ago
@aaronwalker I see you have recent activity for this repo. Would you mind taking a look at this PR and providing assistance/advice? Thank you!!
@aaronwalker Thanks for the quick response and action! I appreciate it.
Overview
This PR adds the value of the pull request's "mergeable state" to the global
pullRequest
variable so that it is available in pipeline builds. This value is helpful to determine if the PR is behind (not up to date from master).Testing done
After making changes:
Ran project locally using
mvn hpi:run
.Used ngrok to proxy requests to local Jenkins; configured webhook to ngrok on repository with pipeline file (l3ender/jenkins-plugin-testing).
Created multibranch pipeline job referencing repo with pipeline:
Created PR that referenced new property
mergeableState
(https://github.com/l3ender/jenkins-plugin-testing/pull/2) and confirmed that desired property can be referenced and value from PR is shown as expected: