We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f83518 commit 0df723cCopy full SHA for 0df723c
Jenkinsfile
@@ -28,9 +28,15 @@ pipeline {
28
29
script {
30
if (BRANCH == 'Dev') {
31
- sh 'cp backend/.env.dev backend/.env'
+ withCredentials([file(credentialsId: 'env-dev', variable: 'ENV_FILE')]) {
32
+ sh 'cp $ENV_FILE backend/.env'
33
+ echo "Development environment file copied from credentials"
34
+ }
35
} else if (BRANCH == 'Main') {
- sh 'cp backend/.env.prod backend/.env'
36
+ withCredentials([file(credentialsId: 'env-prod', variable: 'ENV_FILE')]) {
37
38
+ echo "Production environment file copied from credentials"
39
40
}
41
42
0 commit comments