- I have a Jenkins node master "master" (on Windows) + 1 agent called "Alpha" (on Windows)
- I have an Github Enterprise Repository configured in Jenkins.
- I use a JenkinsFile for the pipeline with this :
All works well when:
- I start a build manually in Jenkins -> the build is executed with the "Alpha" agent
- I commit on Git => Trigger a build on the "Alpha" agent
But when I create a pull request, the build is executed on the "master" agent