jenkins: remove old container instead of just stopping if exists

This commit is contained in:
Trianta 2024-09-17 20:12:37 -05:00
parent 6667a2f79b
commit 457c7a22fa

2
Jenkinsfile vendored
View File

@ -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'
}
}