mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-06-02 00:19:36 +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")
|
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_image.push()
|
docker_image.push()
|
||||||
sh 'docker push mr:8084/spring-petclinic:$GIT_COMMIT'
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue