diff --git a/Jenkinsfile b/Jenkinsfile index b17917f..48f97b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,6 +41,10 @@ pipeline { aws ecr get-login-password --region "$AWS_REGION" \ | docker login --username AWS --password-stdin "$ECR_REGISTRY" ''' + sh ''' + aws ecr describe-repositories --repository-names "liesa/testing-python-app" || \ + aws ecr create-repository --repository-name "liesa/testing-python-app" + ''' } } }