From f758f80afd5d135663214618437d748f255f9ebe Mon Sep 17 00:00:00 2001 From: BrahmanapallyNagaraju <44258487+BrahmanapallyNagaraju@users.noreply.github.com> Date: Wed, 8 Apr 2020 20:37:02 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7505764af..b91b19419 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ stages { dir("spring-petclinic") { sh """ 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 """ }