mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-31 07:39:38 +00:00
changed how push is invoked
This commit is contained in:
parent
d1848d7c04
commit
f61ab0a514
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -42,9 +42,9 @@ pipeline {
|
|||
|
||||
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()
|
||||
sh 'docker push mr:8084/spring-petclinic:$GIT_COMMIT'
|
||||
docker.withRegistry('mr:8084') {
|
||||
docker_image.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue