Hello! I am new to Jenkins, and would appreciate help with the following scenario.
I have been tasked with migrating an existing testing framework to a new one for my team's CI infrastructure. This resulted in the need for a rewrite of our current, existing tests. As a result, we now have a Jenkinsfile for the old set of steps to run for the old tests, and a new one for the new set of tests. I would like to have the following occur:
When a PR is opened, trigger two separate jobs on Jenkins. each of these jobs is part of a GitHub Organization that in turn opens up a job for each PR. These two jobs gate whether the build succeeds. I do not want to combine these two jobs to be part of the same Jenkinsfile, as that would require a significant refactoring of the code that has been done already, as the tests step on each other's toes considerably.
Basically, how do I configure Jenkins so that these two jobs are triggered when a PR is opened / pushed within the context of a GitHub Organization? I can only currently figure out how to have one job run per PR.
I'd be happy to provide more information if needed. Thanks!