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

RetentionStrategy$Demand not respecting Mode.EXCLUSIVE

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • remoting
    • None
    • 1.368-SNAPSHOT

      Queue._getBuildableItems looks at queued items and says they are buildable on a Computer if the task is not tied to a label or label matches the Computer. If the task is not tied to a label it does NOT check if the Computer is Mode.EXCLUSIVE (ie, "for tied jobs only").
      Thus, an on-demand slave may launch its connection when an untied job is in the queue, even though that slave cannot run the task.
      _getBuildableItems should either check the Mode, or maybe better use Node.canTake(task) to determine if the task can run on this Computer.

          [JENKINS-7054] RetentionStrategy$Demand not respecting Mode.EXCLUSIVE

          Alan Harder created issue -
          Alan Harder made changes -
          Assignee New: Alan Harder [ mindless ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 137151 ] New: JNJira + In-Review [ 204397 ]

            mindless Alan Harder
            mindless Alan Harder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: