Jenkinsfile: stop container with image name englishpal.

Lanhui-add-articles
Hui Lan 2021-07-13 12:15:00 +08:00
parent 9144623621
commit 7163b6032f
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -11,6 +11,7 @@ pipeline {
stage('BuildIt') {
steps {
echo 'Building..'
sh 'sudo docker stop $(sudo docker ps -q --filter ancestor=englishpal)'
sh 'sudo docker build -t englishpal .'
sh 'sudo docker run -d -p 91:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal'
}