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

Implied labels cannot refer to Cloud labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • implied-labels-plugin
    • None
    • Jenkins 2.16
      Implied Labels 0.5
      Docker Plugin 0.16.1
      OS: Centos 6.8

      If using a Cloud (ie docker) type slaves, implied labels that refer to labels defined in the Cloud configuration do not work (No nodes that match expression).

      Steps to reproduce problem:

      1. Install docker plugin
      2. Define a new Cloud in Jenkins main config
      3. Define a new Docker template in the new cloud and assign it some labels (ie "docker")
      4. Create a new implied label, ie "container" -> "docker"
      5. Restrict any job to run on label "container"
      6. Run job (never executes since there are no matching nodes)

      It is possible that you do not even need to configure the Cloud with valid values for this test.

      Workaround for simple aliasing:

      Instead of using implied labels, add "container" directly to every docker template definition.

            Unassigned Unassigned
            akom Alexander Komarov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: