jenkins: remove old container if exists
This commit is contained in:
parent
de5f4c5eaf
commit
6667a2f79b
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user