From 059954ae34e2dd5614aff8f36767f92355912a59 Mon Sep 17 00:00:00 2001 From: TomPGrid Date: Fri, 28 Feb 2025 11:24:59 +0100 Subject: [PATCH] fix typo --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02bc0e392..622c7d467 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,11 +33,12 @@ pipeline { stage('Build Image') { agent { image 'docker:20.10.16' + args '--privileged -v /var/run/docker.sock:/var/run/docker.sock' } steps { sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084' - sh 'docker build -t mr:8084/spring-petclinic:$GITCOMMIT .' - sh 'docker push mr:8084/spring-petclinic:$GITCOMMIT' + sh 'docker build -t mr:8084/spring-petclinic:${GIT_COMMIT} .' + sh 'docker push mr:8084/spring-petclinic:${GIT_COMMIT}' } } }