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

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

      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.

          [JENKINS-50754] "ERROR: Could not find credentials matching (rolename)" when using AWS role

          Jon B created issue -
          Jesse Glick made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: docker-commons-plugin [ 20628 ]
          Assignee Original: Jesse Glick [ jglick ] New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Component/s New: docker-commons-plugin [ 20628 ]
          Component/s Original: pipeline-model-definition-plugin [ 21706 ]
          Assignee Original: Andrew Bayer [ abayer ]

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

              Created:
              Updated: