Slave Label defaults to "EC2 (*****) - Jenkins agent EC2 US west 2 (i-***********)"

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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',

            Assignee:
            FABRIZIO MANFREDI
            Reporter:
            Arindom Sarkar
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: