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

Declarative pipeline: 'agent any' doesn't honour node restriction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • None

      I have a multibranch pipeline with a stage having 'agent any' statement.

       

      The pipeline job ended up being blocked with
      node-B is reserved for jobs with matching label expression
      despite the fact that:

      • it should not be run on this node at all (as the node should be restricted by using a label)
      • node-a had idle executors

      Expected behaviour:

      The job should be queued to any node, except those which have "only build jobs with label expressions matching this node", considering the job doesn't match the label criteria

       

            Unassigned Unassigned
            marmax Marian Stranecky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: