Update Jenkinsfile

This commit is contained in:
BrahmanapallyNagaraju 2020-04-08 20:41:52 +05:30 committed by GitHub
parent f758f80afd
commit 2366d4fed3
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") {
sh """
docker build -t pet-clinic:1.0 .
docker ps -q --filter name=pet-clinic_container|grep -q . && docker rm pet-clinic_container||echo pet-clinic_container doesn't exists
docker ps -q --filter name=pet-clinic_container|grep -q . && docker rm pet-clinic_container||echo pet-clinic_container do not exists
docker run --name pet-clinic_container -d -p 8080:8080 pet-clinic:1.0
"""
}