jenkinsci / amazon-ecr-plugin

Amazon EC2 Container Registry plugin for Jenkins
https://plugins.jenkins.io/amazon-ecr/
MIT License
32 stars 22 forks source link

Could not find credentials for me-central-1 region #171

Closed fayas-akram closed 2 months ago

fayas-akram commented 9 months ago

Jenkins and plugins versions report

Environment ``` CLOUD: AWS ENV: Production ```

What Operating System are you using (both controller, and any agents involved in the problem)?

amazon linux 2.

Reproduction steps

  1. Add build steps for UAE region and try to login ECR docker.withRegistry('https://xxxxxx.dkr.ecr.me-central-1.amazonaws.com', 'ecr:me-central-1:xxxxxxx') {}

Expected Results

Success

Actual Results

ERROR: Could not find credentials matching ecr:me-central-1:XXXXXX

Anything else?

the plugging works with other regions. it fails for me-central-1 region

Are you interested in contributing a fix?

Yes

TobiX commented 9 months ago

Looks like #31?

TobiX commented 9 months ago

Could you provide me with some test credentials privately? It's okay if they expire after some weeks, but I'd need to reproduce the issue, so that I'll be able to fix it...

Tesseract99 commented 8 months ago

If I am not wrong,this issue comes when the credentials you have declared in Jenkins / credentials section are NOT of kind "AWS credentials". But, of some other type like - "username and password"

najmi9 commented 7 months ago

use AWS credentials type

TobiX commented 2 months ago

Closing due to missing information. Feel free to reopen if the issue persists.