From de7a140cbd64071e939ae6b4c2635bb3b13a7380 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Tue, 13 Jul 2021 12:24:29 +0800 Subject: [PATCH] Jenkinsfile: stop all containers. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 74a449d..97c9bc7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stage('BuildIt') { steps { echo 'Building..' - sh 'sudo docker stop $(sudo docker ps -q --filter ancestor=englishpal)' + sh 'sudo docker kill $(sudo docker ps -q)' 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' }