2
votes

Currently, I have a Jenkins job setup so that when a pull request is opened for my repository, a Jenkins job is automatically created via the GitHub Pull Request Builder Plugin.

I would like to be able to trigger multiple Jenkins jobs when a PR is opened in my GitHub repository and have the GitHub Pull Request Builder report the status back to the PR. Is this achievable via the GitHub Pull Request Builder plugin or are there other plugins available for this? My research has me coming up empty-handed.

2

2 Answers

3
votes

You can have a Jenkins job for each PR Check, like so: enter image description here

Each one of those jenkins jobs is using the Git Hub Pull Request Builder. Just make sure to configure it with a unique name, and you should be good to go:

enter image description here

0
votes

I finally figured out how to do this, and realized I did not provide enough context in my initial question. Specifically, I am configuring my Jenkins job as part of a GitHub Organization. A single GitHub Organization only supports one Jenkinsfile; one cannot configure the same organization to use two separate Jenkinsfile. So, I imported the same GitHub Organization in my Jenkins instance and configured it to use the other Jenkinsfile. This results in multiple jobs appearing above as you have it configured.