I have a use case where I want to trigger a specific Jenkins job from a BitBucket pull-request via a webhook.
I have managed to get this working using the Bitbucket Pull Request Builder Plugin. However, this plugin only allows me to link one BitBucket repository to trigger my job, when I want to allow multiple repositories to trigger this job.
After doing some digging, I discovered that I could use the Multiple SCMs Plugin to specify all of the repositories that I want to trigger the job. However, the Multiple SCMs Plugin does not expose what GIT_COMMIT from which repository triggered the job.
Is there any way to either:
- Use the Bitbucket Pull Request Builder Plugin (or similar) to specify more than one repository to trigger from.
- Get the Multiple SCMs Plugin (or similar) to expose the
GIT_COMMITand repository that triggered the job?
I am currently limited to running an older version of Jenkins 2.106, on Linux.