Jenkinsfile fixes
gitea/salix/test There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2019-12-23 14:41:32 +01:00
parent 337a8ab944
commit e2830badb9
1 changed files with 3 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -7,6 +7,7 @@ pipeline {
}
environment {
PROJECT_NAME = 'salix'
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
}
stages {
stage('Checkout') {
@ -36,16 +37,14 @@ pipeline {
configFile(fileId: "salix.env",
variable: 'SALIX_ENV')
]) {
sh 'cp "$SALIX_ENV" salix.env'
sh "source salix.env"
sh 'source "$SALIX_ENV"'
}
configFileProvider([
configFile(fileId: "salix.${env.NODE_ENV}.env",
variable: 'SALIX_LOCAL_ENV')
]) {
sh 'cp "$SALIX_LOCAL_ENV" salix.local.env'
sh "source salix.local.env"
sh 'source "$SALIX_LOCAL_ENV"'
}
}
}