mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:55:50 +00:00
changed how push is invoked
This commit is contained in:
parent
f61ab0a514
commit
935ce0c7aa
1 changed files with 6 additions and 5 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -39,11 +39,12 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
script {
|
||||||
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.withRegistry('mr:8084') {
|
docker.withRegistry('mr:8084') {
|
||||||
docker_image.push()
|
docker_image.push()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue