diff --git a/Jenkinsfile b/Jenkinsfile index 3757a6cb9..7d75bec04 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,8 +40,9 @@ pipeline { echo "Push Docker Image to ECR" script { // cleanup current user docker credentials - sh 'rm -f ~/.dockercfg ~/.docker/config.json || true' - docker.withRegistry("https://257307634175.dkr.ecr.ap-northeast-2.amazonaws.com", "ecr:ap-northeast-2:AWSCredentials") { + sh 'rm -f ~/.dockercfg || true' + sh 'rm -f ~/.docker/config.json || true' + docker.withRegistry("https://257307634175.dkr.ecr.ap-northeast-2.amazonaws.com/aws00-spring-petclinic", "ecr:ap-northeast-2:AWSCredentials") { docker.image("spring-petclinic:1.0").push() } }