From 321304276ebea5526e4b50fa0f7424babe20e0eb Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Mon, 13 Jan 2025 13:51:39 +0700 Subject: [PATCH] test ci --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0548ed3..edb88d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -67,7 +67,7 @@ pipeline { try { sh """ # Push both tags - docker rmi ${DOCKER_HUB_USERNAME}/${IMAGE_NAME}:${commitHash} + docker rmi ${DOCKER_HUB_USERNAME}/${IMAGE_NAME}:${GIT_COMMIT_HASH} docker rmi ${DOCKER_HUB_USERNAME}/${IMAGE_NAME}:latest """ } catch (err) { @@ -76,7 +76,7 @@ pipeline { } } success { - echo "Successfully built and pushed Docker image with tags: latest and ${commitHash}" + echo "Successfully built and pushed Docker image with tags: latest and ${GIT_COMMIT_HASH}" } failure { echo 'Failed to build/push Docker image!'