mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Update Jenkinsfile add docker stop if
This commit is contained in:
parent
647ce41156
commit
a890d5096a
1 changed files with 3 additions and 0 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -28,6 +28,9 @@ pipeline {
|
|||
steps {
|
||||
sh '''
|
||||
docker pull kerallenarium/spring-petclinic:latest
|
||||
if [ "$(docker ps -q)" ]; then
|
||||
docker stop $(docker ps -q)
|
||||
fi
|
||||
docker run -d -p 80:8080 kerallenarium/spring-petclinic:latest
|
||||
'''
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue