How to get AWS credentials for Jenkins + ECR + Pipeline

Viewed 244

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/

1 Answers

Install AWS Pipeline Plugin in Jenkins, Then you can create an aws credential from Manage Jenkins - Manage credentials

Related