Update Jenkinsfile

This commit is contained in:
Manraj 2023-03-11 01:46:40 -05:00 committed by GitHub
parent d0bae67940
commit 7cc3bca0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -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') {