change how variables are called

This commit is contained in:
TomPGrid 2025-02-28 12:13:45 +01:00
parent 644f7ff875
commit e91127bd32

6
Jenkinsfile vendored
View file

@ -40,11 +40,11 @@ pipeline {
steps { steps {
checkout scm 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' sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084'
docker_image.push('${GIT_COMMIT}') docker_image.push('$GIT_COMMIT')
sh 'docker push mr:8084/spring-petclinic:${GIT_COMMIT}' sh 'docker push mr:8084/spring-petclinic:$GIT_COMMIT'
} }
} }
} }