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

When executing multiple builds with the same label expression plugin only launches one agent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • amazon-ecs-plugin
    • None
    • amazon-ecs plugin version 1.19
      Jenkins ver. 2.150.3

      Similiar to JENKINS-53001 but this is about old-style jobs.

      As seen on the screenshot concurrent builds of the same project are serialized because ECS plugin only provides 1 agent.

      When I try to execute 2 builds from separate projects, which have the same label expression only 1 agent is spawned, making the other build wait.

      The plugin configuration is as follows:

      <com.cloudbees.jenkins.plugins.amazonecs.ECSCloud@3de68a52 templates=[com.cloudbees.jenkins.plugins.amazonecs.ECSTaskTemplate@9780094] credentialsId= cluster=arn:aws:ecs:eu-central-1:1234:cluster/ew1-acme-2P3KCN8TWDUV regionName=eu-central-1 tunnel=null jenkinsUrl=http://REDACTED.eu-central-1.elb.amazonaws.com retentionTimeout=5 slaveTimeoutInSeconds=900 ecsService=com.cloudbees.jenkins.plugins.amazonecs.ECSService@772f46cb name=ecsTest actions=null>
      <com.cloudbees.jenkins.plugins.amazonecs.ECSTaskTemplate@9780094 templateName=jnlp-slave-with-dockerPiip label=ecs docker any ec2-deploy ec2 deploy taskDefinitionOverride=null image=jenkinsci/jnlp-slave remoteFSRoot=/var/jenkins_home memory=0 memoryReservation=1536 cpu=1 subnets= securityGroups= assignPublicIp=false dnsSearchDomains=null entrypoint=null taskrole=null executionRole=null repositoryCredentials=null jvmArgs=null mountPoints=[MountPointEntry{name:docker, sourcePath:/var/run/docker.sock, containerPath:/var/run/docker.sock, readOnly:false}, MountPointEntry{name:jenkins-workspace, sourcePath:/mnt/efs, containerPath:/var/jenkins_home, readOnly:false}] launchType=EC2 networkMode=default privileged=true containerUser=null environments=null extraHosts=null portMappings=null logDriver=null logDriverOptions=null>
      
      

        1. Screenshot_20190312_124346.png
          8 kB
          Jakub Bochenski
        2. Screenshot_20190312_162612.png
          13 kB
          Jakub Bochenski

            roehrijn2 Jan Roehrich
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: