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

Scheduling skipped when there is no restriction for label

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a job with no label restriction and master without executors. The job seems to be never scheduled:

      Looking nodes where the poll can be run.
      Looking for a candidate node to run the poll.
      Looking for a node with no predefined label.
      Trying to poll with the last built on node.
      Trying to poll on master node.
      Finding Jenkins but it is not eligible.
      Can't find any complete active node for the polling action.
      Maybe slaves are not yet active at this time or the number of executor of the master is 0.
      Checking again in next polling schedule.
      

      The problem seems to be that org.jenkinsci.lib.xtrigger.AbstractTrigger treats jobs without label expression as if it slave without labels. It should run anywhere instead.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            pom.xml
            src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java
            src/test/java/org/jenkinsci/lib/xtrigger/AbstractTriggerTest.java
            src/test/java/org/jenkinsci/lib/xtrigger/TestTrigger.java
            http://jenkins-ci.org/commit/xtrigger-lib/c057fb4af93ed8ff2fbb9436e12dc439024b314b
            Log:
            [FIXED JENKINS-29610] Scheduling skipped when there is no label restrictionl

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: pom.xml src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java src/test/java/org/jenkinsci/lib/xtrigger/AbstractTriggerTest.java src/test/java/org/jenkinsci/lib/xtrigger/TestTrigger.java http://jenkins-ci.org/commit/xtrigger-lib/c057fb4af93ed8ff2fbb9436e12dc439024b314b Log: [FIXED JENKINS-29610] Scheduling skipped when there is no label restrictionl
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Gregory Boissinot
            Path:
            pom.xml
            src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java
            src/test/java/org/jenkinsci/lib/xtrigger/AbstractTriggerTest.java
            src/test/java/org/jenkinsci/lib/xtrigger/TestTrigger.java
            http://jenkins-ci.org/commit/xtrigger-lib/fa3759d381ded23ea99a03fff7c7c0eeddd7ef6d
            Log:
            Merge pull request #4 from olivergondza/JENKINS-29610

            [FIXED JENKINS-29610] Scheduling skipped when there is no label restriction

            Compare: https://github.com/jenkinsci/xtrigger-lib/compare/41a6711bc5a5...fa3759d381de

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java src/test/java/org/jenkinsci/lib/xtrigger/AbstractTriggerTest.java src/test/java/org/jenkinsci/lib/xtrigger/TestTrigger.java http://jenkins-ci.org/commit/xtrigger-lib/fa3759d381ded23ea99a03fff7c7c0eeddd7ef6d Log: Merge pull request #4 from olivergondza/ JENKINS-29610 [FIXED JENKINS-29610] Scheduling skipped when there is no label restriction Compare: https://github.com/jenkinsci/xtrigger-lib/compare/41a6711bc5a5...fa3759d381de

              People

              Assignee:
              olivergondza Oliver Gondža
              Reporter:
              olivergondza Oliver Gondža
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: