From 457c7a22fa88495acad007bd7160715c1181d932 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Tue, 17 Sep 2024 20:12:37 -0500 Subject: [PATCH] jenkins: remove old container instead of just stopping if exists --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 45be3fa..29e4f74 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } stage('Deploy') { steps { - sh 'docker stop test || exit 0' + sh 'docker stop test && docker rm test || exit 0' sh 'docker run -d -p 3466:80 --name test test.trianta.dev:latest' } }