Skip to content

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

@kzettlmeier

Description

@kzettlmeier

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions