Update Jenkinsfile

This commit is contained in:
BrahmanapallyNagaraju 2020-04-08 20:37:02 +05:30 committed by GitHub
parent a62b2c9f93
commit f758f80afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -15,7 +15,7 @@ stages {
dir("spring-petclinic") { dir("spring-petclinic") {
sh """ sh """
docker build -t pet-clinic:1.0 . docker build -t pet-clinic:1.0 .
docker rm pet-clinic_container docker ps -q --filter name=pet-clinic_container|grep -q . && docker rm pet-clinic_container||echo pet-clinic_container doesn't exists
docker run --name pet-clinic_container -d -p 8080:8080 pet-clinic:1.0 docker run --name pet-clinic_container -d -p 8080:8080 pet-clinic:1.0
""" """
} }