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

EC2 cannot handle label expressions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      EC2 cloud can provision slave for job which is tied to single label (e.g. "label1") but fails to provide slave for jobs tied to label expression (e.g. "label1 && label2")

        Attachments

          Activity

          Hide
          vjuranek vjuranek added a comment -
          Show
          vjuranek vjuranek added a comment - Possible fix proposed in https://github.com/jenkinsci/ec2-plugin/pull/10
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          src/main/java/hudson/plugins/ec2/EC2Cloud.java
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          http://jenkins-ci.org/commit/ec2-plugin/186d07d644157a6e93bacadf2145c0474266093d
          Log:
          Fix for JENKINS-9773 - EC2 cannot deal with label expressions

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: src/main/java/hudson/plugins/ec2/EC2Cloud.java src/main/java/hudson/plugins/ec2/SlaveTemplate.java http://jenkins-ci.org/commit/ec2-plugin/186d07d644157a6e93bacadf2145c0474266093d Log: Fix for JENKINS-9773 - EC2 cannot deal with label expressions
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: vjuranek
          Path:
          src/main/java/hudson/plugins/ec2/EC2Cloud.java
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java
          http://jenkins-ci.org/commit/ec2-plugin/df313719c482e2620fb0baa808478f659640ea16
          Log:
          Merge pull request #10 from vjuranek/JENKINS-9773

          Jenkins 9773

          Compare: https://github.com/jenkinsci/ec2-plugin/compare/3e5ed16...df31371

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vjuranek Path: src/main/java/hudson/plugins/ec2/EC2Cloud.java src/main/java/hudson/plugins/ec2/SlaveTemplate.java src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java http://jenkins-ci.org/commit/ec2-plugin/df313719c482e2620fb0baa808478f659640ea16 Log: Merge pull request #10 from vjuranek/ JENKINS-9773 Jenkins 9773 Compare: https://github.com/jenkinsci/ec2-plugin/compare/3e5ed16...df31371
          Hide
          pfalcon Paul Sokolovsky added a comment -

          Folks who may still have issues with this may check if they quote labels properly. For example, we have labels 32bit and 64bit. If they're used in expression like 'ec2 && 64bit', that hangs and doesn't spawn any instance. Instead it should be 'ec2 && "64bit"'.

          Show
          pfalcon Paul Sokolovsky added a comment - Folks who may still have issues with this may check if they quote labels properly. For example, we have labels 32bit and 64bit. If they're used in expression like 'ec2 && 64bit', that hangs and doesn't spawn any instance. Instead it should be 'ec2 && "64bit"'.

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              vjuranek vjuranek
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: