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

Docker plugin does not provision containers for builds with multiple labels

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • docker-plugin
    • None
    • Jenkins 1.625.1
      Docker Plugin 0.15.0
      Docker 1.9.0

      We have Docker set up in our environment to automatically provision build nodes for jobs with the label 'docker'.

      This works great if the job has only the label 'docker' defined, but if the job has multiple labels, it sits in the queue until one of our static build nodes becomes available.

      I have reviewed the Docker plugin log, and there appears to be no attempt to provision containers whilst these jobs are waiting in the queue.

          [JENKINS-31475] Docker plugin does not provision containers for builds with multiple labels

          magnayn added a comment -

          Not sure that's a docker-plugin issue - the machinery for node labelling is core to Jenkins.

          The important bit to check is DockerCloud getTemplates(Label label) - this is where it'll figure out if there is any matching template for launching.

          magnayn added a comment - Not sure that's a docker-plugin issue - the machinery for node labelling is core to Jenkins. The important bit to check is DockerCloud getTemplates(Label label) - this is where it'll figure out if there is any matching template for launching.

          Thanks for your quick response. Can you provide some more detail on how I can check that? i.e. Is that a call I can make to the Jenkins or Docker API?

          Chris Penhaligon added a comment - Thanks for your quick response. Can you provide some more detail on how I can check that? i.e. Is that a call I can make to the Jenkins or Docker API?

          Nicolas De Loof added a comment - - edited

          I'm closing this issue as it doesn't seem related to docker-plugin (not even being invoked to provision nodes). Feel free to reopen and give more details on the label expression you're using.

          Combining labels generally means you want all labels to match so a node is selected, ie `docker && ssd` 

          Nicolas De Loof added a comment - - edited I'm closing this issue as it doesn't seem related to docker-plugin (not even being invoked to provision nodes). Feel free to reopen and give more details on the label expression you're using. Combining labels generally means you want all labels to match so a node is selected, ie `docker && ssd` 

            ndeloof Nicolas De Loof
            cpenhaligon Chris Penhaligon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: