forked from mrlan/EnglishPal
修改Jenkinsfile,在构建时只停止即将运行的image
parent
8c8866548b
commit
951e05db47
|
@ -18,7 +18,7 @@ pipeline {
|
|||
steps {
|
||||
echo 'Building..'
|
||||
sh 'sudo docker build -t englishpalzhangxf .'
|
||||
sh 'sudo docker stop $(docker ps -aq)'
|
||||
sh 'sudo docker stop 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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue