From 7ef301c166d8b1f177d60c610654d3ed7347ba05 Mon Sep 17 00:00:00 2001 From: Manraj Date: Sat, 11 Mar 2023 02:36:48 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c4cd482..d00065d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,8 @@ pipeline { TWILIO_CREDS = credentials('twilio-creds') } steps { - sh 'cp $TWILIO_CREDS .env' + sh 'chown -R root:jenkins target/' + sh 'sudo cp $TWILIO_CREDS .env' sh 'docker build -t microblog:latest .' } }