From 5a6b36b85552bfc3e69a731bf57ee7f440d01614 Mon Sep 17 00:00:00 2001 From: TomPGrid Date: Fri, 28 Feb 2025 12:06:16 +0100 Subject: [PATCH] test changes --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 059c84c32..504c2d44e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,9 +38,13 @@ pipeline { } } steps { + checkout scm + + def docker_image=docker.build("mr:8084/spring-petclinic:${env.GIT_COMMIT}") sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084' - sh 'docker build -t mr:8084/spring-petclinic:${GIT_COMMIT} .' - sh 'docker push mr:8084/spring-petclinic:${GIT_COMMIT}' + + docker_image.push('${env.GIT_COMMIT}) + sh 'docker push mr:8084/spring-petclinic:${env.GIT_COMMIT}' } } }