jenkinsci / jenkinsci/docker-commons-plugin

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

Open
#212 5 comments 0 reactions 0 assignees View on GitHub
component:docker-commons-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): docker-commons-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 5
  • imported: 20260604-161841

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_ROLE


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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.