From 7cc3bca0ce8cbe71cc334ae592dc58198ff3023f Mon Sep 17 00:00:00 2001 From: Manraj Date: Sat, 11 Mar 2023 01:46:40 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index eb2bdb1..7052d54 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,9 @@ pipeline { steps { // Stop running microblog container (microblog label applied to microblog container by this repo's Dockerfile) sh 'docker stop $(docker ps -q --filter name=microblog) || true && docker rm $(docker ps -q --filter name=microblog) || true' + withCredentials([file(credentialsId: twilio-creds, variable: 'env')]) { + writeFile file: '.env', text: readFile(env) + } } } stage('Build') {