jenkins: remove old container instead of just stopping if exists
This commit is contained in:
parent
6667a2f79b
commit
457c7a22fa
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -15,7 +15,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
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'
|
sh 'docker run -d -p 3466:80 --name test test.trianta.dev:latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user