diff --git a/Jenkinsfile b/Jenkinsfile index 504c2d44e..6431446da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,11 +40,11 @@ pipeline { steps { checkout scm - def docker_image=docker.build("mr:8084/spring-petclinic:${env.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('${env.GIT_COMMIT}) - sh 'docker push mr:8084/spring-petclinic:${env.GIT_COMMIT}' + docker_image.push('${GIT_COMMIT}) + sh 'docker push mr:8084/spring-petclinic:${GIT_COMMIT}' } } }