Open timja opened 7 years ago
Answer in https://stackoverflow.com/a/46154606/6997786:
This variable sutup in the branch-api-plugin (setup source) and we have it working for pull requests or change requests.
For branches of the form -, it is not filled.
I can advise you to use:
{{BUILD_NUMBER The current build number, such as "153" }}
BUILD_ID The current build ID, identical to BUILD_NUMBER for builds created in 1.597+, but a YYYY-MM-DD_hh-mm-ss timestamp for older builds
We would like to process a GitHub pull Request on a Multi-Branch pipeline. The CHANGE_ID param is however not set (null), while it should be according to
https://jenkins.io/doc/book/pipeline/multibranch/
I posted the same bug here, with details on our plugins, and the event log.
https://stackoverflow.com/questions/44757073/jenkins-multibranch-pipeline-job-change-id-not-set
Any suggestions on how to tackle this problem? I would think, we should like to see exactly what github is posting, is this somehow recorded in Jenkins?
Thank You.
Originally reported by dzonekl, imported from: Github event, CHANGE_ID not set