From e91127bd323408cab8f547b46f91fd454bb2a008 Mon Sep 17 00:00:00 2001 From: TomPGrid Date: Fri, 28 Feb 2025 12:13:45 +0100 Subject: [PATCH] change how variables are called --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b36878318..6eae1e827 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,11 +40,11 @@ pipeline { steps { checkout scm - def docker_image=docker.build("mr:8084/spring-petclinic:${GIT_COMMIT}") + def docker_image=docker.build("mr:8084/spring-petclinic:$GIT_COMMIT") sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084' - docker_image.push('${GIT_COMMIT}') - sh 'docker push mr:8084/spring-petclinic:${GIT_COMMIT}' + docker_image.push('$GIT_COMMIT') + sh 'docker push mr:8084/spring-petclinic:$GIT_COMMIT' } } }