0
0
Fork 0

之停止即将运行的image失败,回溯一下

Lanhui-add-articles
张小飞 2021-06-01 11:09:10 +08:00
parent 951e05db47
commit f475915ab6
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline {
steps { steps {
echo 'Building..' echo 'Building..'
sh 'sudo docker build -t englishpalzhangxf .' sh 'sudo docker build -t englishpalzhangxf .'
sh 'sudo docker stop englishpalzhangxf' sh 'sudo docker stop $(docker ps -aq)'
sh 'sudo docker run -d -p 5000:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpalzhangxf' sh 'sudo docker run -d -p 5000:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpalzhangxf'
} }
} }