jenkinsci / jenkinsci/docker-commons-plugin
[JENKINS-50754] "ERROR: Could not find credentials matching (rolename)" when using AWS role
- Dominant language
- Java
- Stars
- 53
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
My pipeline looks like this:
pipeline {
agent {
docker {
image '.dkr.ecr.us-west-2.amazonaws.com//cicd-debian-worker:v0.0.2'
label ''
registryUrl 'https://.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.
---
Originally reported by
piratejohnny, imported from: "ERROR: Could not find credentials matching (rolename)" when using AWS role
Raw content of original issue
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_ROLEI'm 100% sure the credential exists with that name.
Contributor guide
Assessment
This issue has not been assessed yet.