完善一下部署时,容器更替的问题
This commit is contained in:
@@ -25,7 +25,7 @@ pipeline {
|
||||
stage('部署') {
|
||||
steps {
|
||||
echo 'Deploying...'
|
||||
sh 'docker stop oms-node-service || true'
|
||||
sh 'docker stop oms-node-service || true && docker rm oms-node-service || true'
|
||||
sh 'docker run -d --name oms-node-service -p 12526:12525 oms-node-service:latest'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user