简体   繁体   中英

How to get AWS credentials for Jenkins + ECR + Pipeline

I am currently building Jenkins + ECR CI/CD.

Here's pipeline code.

docker.withRegistry(
   'https://ID.ecr.eu-west-1.amazonaws.com', 
   'ecr:eu-west-1:86c8f5ec-1ce1-4e94-80c2-18e23bbd724a') {

My Question is How can I get ECR login credential?

The login credential in the above code is 'ecr:eu-west-1:86c8f5ec-1ce1-4e94-80c2-18e23bbd724a'.

My reference documentation is https://plugins.jenkins.io/amazon-ecr/

在 Jenkins 中安装 AWS Pipeline Plugin,然后您可以从 Manage Jenkins - Manage credentials 创建一个 aws credential

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM