jenkins: remove old container if exists
This commit is contained in:
Vendored
+1
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user