From 3bddc1ed2798890ec629fe2ea0f05b404dd30a5b Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 26 Jun 2021 00:28:37 +0800 Subject: [PATCH] Jenkinsfile: sudo --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 434c00f..b005e85 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { steps { echo 'Building..' sh 'sudo docker build -t englishpal .' - sh 'sudo docker stop $(docker ps -aq)' + sh 'sudo docker stop $(sudo docker ps -aq)' sh 'sudo docker run -d -p 91:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal' } }