jenkinsci / ec2-fleet-plugin

The EC2 Fleet plugin launches EC2 instances as worker nodes for Jenkins CI server, automatically scaling the capacity with the load.
https://plugins.jenkins.io/ec2-fleet/
Apache License 2.0
111 stars 82 forks source link

EC2 Fleet Plugin With Label Restriction Does Not Scale When Pipeline Uses Label Conditions #361

Open kzettlmeier opened 1 year ago

kzettlmeier commented 1 year ago

Issue Details

Describe the bug EC2 Fleet Plugin will not auto scale on node label expressions.

To Reproduce

  1. Create a new Jenkins job that uses node label linux-docker-fleet || windows-docker-fleet
  2. Create a new EC2 Fleet Cloud that should restrict to label linux-docker-fleet
  3. Create a new EC2 Fleet Cloud that should restrict to label windows-docker-fleet

Environment Details

Plugin Version? 2.5.2

Jenkins Version? 2.319.1

Label based fleet? Yes

Linux or Windows? Both

When Jenkins scans for if it needs to boot any new EC2 instances you will see the following log message:

label [linux-docker-fleet||windows-docker-fleet]: cloud AWS-Linux-Docker-Fleet can not provision for this label, continuing...
label [linux-docker-fleet||windows-docker-fleet]: cloud AWS-Windows-Docker-Fleet can not provision for this label, continuing...
vineeth-bandi commented 1 year ago

@kzettlmeier I was not able to reproduce this bug with Plugin version 2.5.2 and Jenkins version 2.319.2. Can you share screenshots of your Fleet Cloud configurations as well as Job configuration?

ajax-koval-i commented 8 months ago

@kzettlmeier hi have the same issue did you fix that ?