Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52216

Pull Request and pipeline agent

XMLWordPrintable

      • 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 :
      pipeline {
      	options {
      		skipDefaultCheckout(true)
      		disableConcurrentBuilds()
      	}
      	agent {
      		label 'Alpha'
      	}
              ....
      }
      

      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

            Unassigned Unassigned
            lardef frederic larde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: