[JIRA] (JENKINS-60112) Slave Label defaults to "EC2 (*****) - Jenkins agent EC2 US west 2 (i-***********)"

0 views
Skip to first unread message

arindom.sarkar@gmail.com (JIRA)

unread,
Nov 8, 2019, 1:03:03 PM11/8/19
to jenkinsc...@googlegroups.com
Arindom Sarkar created an issue
 
Jenkins / Bug JENKINS-60112
Slave Label defaults to "EC2 (*****) - Jenkins agent EC2 US west 2 (i-***********)"
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-11-08 18:02
Environment: ec2:1.45
Jenkins: 2.190.2
Priority: Minor Minor
Reporter: Arindom Sarkar

The ec2-Plugin label defaults to "EC2 (****) - Jenkins agent EC2 US west 2 (i-**********)" although a slave label was provided during configuration. This results in Role-Strategy plugin throwing an error message when rules are set on which user has access to which slave.

 

Error Message: 

pending—‘Jenkins’ doesn’t have label ‘nonprodslave’; ‘user2’ lacks permission to run on ‘EC2 (nonprodslave) - Jenkins agent EC2 US west 2 (i-***************)’)

 

Slave Config:
def SlaveTemplateUsEast1Parameters = [
  ami:                      'ami-**************',
  associatePublicIp:        false,
  connectBySSHProcess:      true,
  connectUsingPublicIp:     false,
  customDeviceMapping:      '',
  deleteRootOnTermination:  true,
  description:              'Jenkins agent EC2 US west 2',
  ebsOptimized:             false,
  iamInstanceProfile:       '',
  idleTerminationMinutes:   '59',
  initScript:               '',
  instanceCapStr:           '',
  jvmopts:                  '',
  labelString:              'nonprodslave',

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages