Issue
The following error coming fom a CJE operation:
Unable to locate credentials. You can configure credentials by running "aws configure".
Script terminated with an error (255)
The operation fails.
Environment
- CloudBees Jenkins Enterprise >= 1.11.22
- Amazon ECR
Resolution
There is not a solution available yet.
Workaround
- Patch
share/setup-templates/core/scripts/jce-system-support
, search the functiondocker-ecr-login-cron
and replacesudo -H /etc/cron.hourly/ecr-login
bysudo -H /etc/cron.hourly/ecr-login || true
. cje apply
.
0 Comments