From e66af3cd0e1e31b15a4ad441c2104047e9857b9b Mon Sep 17 00:00:00 2001 From: s4616 <87678241+s4616@users.noreply.github.com> Date: Mon, 10 Jul 2023 19:25:12 +0900 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() } }