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

Cannot restrict a matrix build job to one node/label

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • hudson 1.380 win server 2003

      I setup a matrix job with setup to build with many jdk's and only one node axis - the master node. We have two nodes, the master and a build node for special builds (documentation). But when i start the matrix build, it starts the build on the special build node - not on master.

      The "special" build node on that the build is starts, is a node that i have restricted to "reserve for exclusive jobs". In my opinion it should no use such type of nodes.

      Any hints?

          [JENKINS-7825] Cannot restrict a matrix build job to one node/label

          kbertelson added a comment -

          Try installing the Matrix Tie Parent plugin (http://wiki.jenkins-ci.org/display/JENKINS/Matrix+Tie+Parent+Plugin).

          Then, Tie parent build to node "master".

          kbertelson added a comment - Try installing the Matrix Tie Parent plugin ( http://wiki.jenkins-ci.org/display/JENKINS/Matrix+Tie+Parent+Plugin ). Then, Tie parent build to node "master".

          Andy M added a comment -

          In my experience, Matrix Tie Parent, does tie the parent job, but not the child jobs.

          Andy M added a comment - In my experience, Matrix Tie Parent, does tie the parent job, but not the child jobs.

          A workaround is to create one label axis with just one value, but I agree that this would be an useful addition.

          Kohsuke Kawaguchi added a comment - A workaround is to create one label axis with just one value, but I agree that this would be an useful addition.

          Kevin R. added a comment -

          bump.

          It would be really nice if child jobs can be tied to specific nodes.

          Kevin R. added a comment - bump. It would be really nice if child jobs can be tied to specific nodes.

          Kevin R. added a comment -

          EDIT: changed to an improvement, as it is not an actual bug.

          Kevin R. added a comment - EDIT: changed to an improvement, as it is not an actual bug.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/Queue.java
          core/src/main/java/jenkins/model/Jenkins.java
          core/src/main/resources/hudson/matrix/MatrixProject/configure-entries.jelly
          core/src/main/resources/hudson/matrix/MatrixProject/help-slaveAffinity.html
          core/src/main/resources/hudson/model/AbstractItem/configure-common.jelly
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_de.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_fr.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_ja.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_pt_BR.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_ru.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_tr.html
          core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_zh_TW.html
          core/src/main/resources/lib/hudson/project/config-assignedLabel.jelly
          core/src/main/resources/lib/hudson/project/config-assignedLabel.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_bg.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_da.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_de.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_es.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_ja.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_pt_BR.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_ru.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_tr.properties
          core/src/main/resources/lib/hudson/project/config-assignedLabel_zh_TW.properties
          war/src/main/webapp/help/project-config/slave.html
          war/src/main/webapp/help/project-config/slave_de.html
          war/src/main/webapp/help/project-config/slave_fr.html
          war/src/main/webapp/help/project-config/slave_ja.html
          war/src/main/webapp/help/project-config/slave_pt_BR.html
          war/src/main/webapp/help/project-config/slave_ru.html
          war/src/main/webapp/help/project-config/slave_tr.html
          war/src/main/webapp/help/project-config/slave_zh_TW.html
          http://jenkins-ci.org/commit/jenkins/d35f0d55d3343a499900cc5bc45d004726a224b7
          Log:
          [FIXED JENKINS-7825]

          Exposed the UI that sets the assigned label of matrix projects.
          This deprecates the "Matrix tie parent" plugin.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/Queue.java core/src/main/java/jenkins/model/Jenkins.java core/src/main/resources/hudson/matrix/MatrixProject/configure-entries.jelly core/src/main/resources/hudson/matrix/MatrixProject/help-slaveAffinity.html core/src/main/resources/hudson/model/AbstractItem/configure-common.jelly core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_de.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_fr.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_ja.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_pt_BR.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_ru.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_tr.html core/src/main/resources/hudson/model/AbstractItem/help-slaveAffinity_zh_TW.html core/src/main/resources/lib/hudson/project/config-assignedLabel.jelly core/src/main/resources/lib/hudson/project/config-assignedLabel.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_bg.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_da.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_de.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_es.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_ja.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_pt_BR.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_ru.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_tr.properties core/src/main/resources/lib/hudson/project/config-assignedLabel_zh_TW.properties war/src/main/webapp/help/project-config/slave.html war/src/main/webapp/help/project-config/slave_de.html war/src/main/webapp/help/project-config/slave_fr.html war/src/main/webapp/help/project-config/slave_ja.html war/src/main/webapp/help/project-config/slave_pt_BR.html war/src/main/webapp/help/project-config/slave_ru.html war/src/main/webapp/help/project-config/slave_tr.html war/src/main/webapp/help/project-config/slave_zh_TW.html http://jenkins-ci.org/commit/jenkins/d35f0d55d3343a499900cc5bc45d004726a224b7 Log: [FIXED JENKINS-7825] Exposed the UI that sets the assigned label of matrix projects. This deprecates the "Matrix tie parent" plugin.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2642

          Result = UNSTABLE

          dogfood added a comment - Integrated in jenkins_main_trunk #2642 Result = UNSTABLE

          Gilad Judes added a comment -

          Still happens

          Jenkins ver. 1.562
          Matrix Project Plugin 1.2

          Got the Matrix Job set this under Advanced: "Restrict where this project can be run" to "master"

          But when I run the Matrix only the first job runs on the Master - the rest run on any of the Slaves available

          Gilad Judes added a comment - Still happens Jenkins ver. 1.562 Matrix Project Plugin 1.2 Got the Matrix Job set this under Advanced: "Restrict where this project can be run" to "master" But when I run the Matrix only the first job runs on the Master - the rest run on any of the Slaves available

          Oleg Nenashev added a comment -

          It should be a new issue...

          Oleg Nenashev added a comment - It should be a new issue...

          Gilad Judes added a comment -

          created a new issue as requested:
          https://issues.jenkins-ci.org/browse/JENKINS-23459

          Gilad Judes added a comment - created a new issue as requested: https://issues.jenkins-ci.org/browse/JENKINS-23459

            Unassigned Unassigned
            azgard azgard
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: