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

EC2 cannot handle label expressions

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • ec2-plugin
    • None

    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

          vjuranek vjuranek added a comment - Possible fix proposed in https://github.com/jenkinsci/ec2-plugin/pull/10

          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

          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

          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

          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

          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"'.

          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

            vjuranek vjuranek
            vjuranek vjuranek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: