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

ECS plugin fails to use label expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • amazon-ecs-plugin
    • None
    • Tested on 2.107.1 and 2.89.2.

      When I have multiple images defined in the same cluster I want to differentiate them by labels, like 'aws&&chef' or 'aws&&terraform'. Unfortunately it seems this plugin fails to handle plugin expressions, see the error stack trace below:

      Mar 24, 2018 10:53:40 AM WARNING hudson.slaves.NodeProvisioner$2 run
      Unexpected exception encountered while provisioning agent ECS Slave aws linux debian
      java.lang.ClassCastException: hudson.model.labels.LabelExpression$And cannot be cast to hudson.model.labels.LabelAtom
      	at jenkins.model.Jenkins.getLabelAtom(Jenkins.java:1941)
      	at hudson.model.Label.parse(Label.java:592)
      	at hudson.model.Node.getAssignedLabels(Node.java:300)
      	at hudson.model.Slave.<init>(Slave.java:196)
      	at hudson.slaves.AbstractCloudSlave.<init>(AbstractCloudSlave.java:51)
      	at com.cloudbees.jenkins.plugins.amazonecs.ECSSlave.<init>(ECSSlave.java:95)
      	at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud$ProvisioningCallback.call(ECSCloud.java:243)
      	at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud$ProvisioningCallback.call(ECSCloud.java:221)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)

            llibicpep Dee Kryvenko
            llibicpep Dee Kryvenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: