mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
change how variables are called
This commit is contained in:
parent
644f7ff875
commit
e91127bd32
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue