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

EC2-Fleet-Plugin assigns instance name (‘Jenkins’ doesn’t have label ‘nonprodslave2’; ‘user2’ lacks permission to run on ‘nonprodslave2 i-************343’) after the label. This fails the role assignment by agent labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ec2-fleet-plugin
    • None
    • Prod

      EC2-Fleet Plugin assigns the instance_id with the name and does not actually provide the label when evaluated from "Role-Strategy" plugin. 

      I have a agent labeled as "nonprodslave2" and assigned certain users to be able to build on that agent by putting "nonprodslave*." as the label expression. However when I logged in as the user and tried to invoke the job I got this error

       

      "Jenkins’ doesn’t have label ‘nonprodslave2’; ‘user2’ lacks permission to run on ‘nonprodslave2 i-07f************6e’"

       

      But When I looked at Jenkins --> Manage Jenkins --> Manage Nodes I could see the labels are assigned as "nonprodslave2". Somehow some attribute is exposing the label as "nonprodslave2 i-07f************6e" causing this issue.

            terma Artem Stasiuk
            asarkar2 Arindom Sarkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: