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

"ERROR: Could not find credentials matching (rolename)" when using AWS role

XMLWordPrintable

      My pipeline looks like this:

      pipeline {
       agent {
       docker { 
       image '<id>.dkr.ecr.us-west-2.amazonaws.com/<company>/cicd-debian-worker:v0.0.2'
       label '<mylabel>'
       registryUrl 'https://<id>.dkr.ecr.us-west-2.amazonaws.com/'
       registryCredentialsId 'JENKINS_SLAVE_AWS_ROLE'
       }
      }
      ...

      I have also set an AWS credential for which I set the ARN to the role ARN I'm interested in into the global namespace in the credentials store.

      When I run my pipeline, it fails with:

      ERROR: Could not find credentials matching JENKINS_SLAVE_AWS_ROLE

      I'm 100% sure the credential exists with that name.

            Unassigned Unassigned
            piratejohnny Jon B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: