diff --git a/Jenkinsfile b/Jenkinsfile index 552de78..c2b7da6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { TWILIO_CREDS = credentials('twilio-creds') } steps { - sh 'chown -R root:jenkins *' + sh 'sudo usermod -a -G root jenkins' sh 'sudo cp $TWILIO_CREDS .env' sh 'docker build -t microblog:latest .' }