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

Pull Request and pipeline agent

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      • 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

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          That is deeply weird - I can't reproduce it. Any chance you could zip/tar up the build directories for a build that does the right thing and one that does the wrong thing? I'm talking about the directories like JENKINS_HOME/jobs/repo-name/jobs/branch-name/builds/123.

          Show
          abayer Andrew Bayer added a comment - That is deeply weird - I can't reproduce it. Any chance you could zip/tar up the build directories for a build that does the right thing and one that does the wrong thing? I'm talking about the directories like JENKINS_HOME/jobs/repo-name/jobs/branch-name/builds/123 .
          Hide
          lardef frederic larde added a comment -

          I'm sorry, this issue didn't appeared again. It seems that it has been fixed between 2.131 and  2.138

          Show
          lardef frederic larde added a comment - I'm sorry, this issue didn't appeared again. It seems that it has been fixed between 2.131 and  2.138

            People

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

              Dates

              Created:
              Updated:
              Resolved: