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