Skip to content

Commit 7a49c10

Browse files
committed
🔧 chore[Jenkinsfile]: update environment variable handling for deployment setup
1 parent 8e99c10 commit 7a49c10

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎Jenkinsfile‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pipeline {
3131
default:
3232
env.ENVIRONMENT = 'other'
3333
env.DOCKER_COMPOSE_FILE = ''
34-
echo "Branch ${branchName} is not supported. Skipping deployment."
34+
env.ENV_FILE_CREDENTIAL = 'blog-dev-env-file'
3535
}
3636

3737
echo "Environment: ${env.ENVIRONMENT}"
@@ -41,9 +41,6 @@ pipeline {
4141
}
4242

4343
stage('Setup .env') {
44-
when {
45-
expression { env.ENVIRONMENT != 'other' }
46-
}
4744
steps {
4845
script {
4946
withCredentials([file(credentialsId: env.ENV_FILE_CREDENTIAL, variable: 'SECRET_ENV_FILE')]) {

0 commit comments

Comments
 (0)