Jenkinsfile: sudo

pull/1/head
Hui Lan 2021-06-26 00:28:37 +08:00
parent d02da7ba9c
commit 3bddc1ed27
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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'
}
}