Jenkinsfile changes
gitea/salix/test This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-12-23 15:45:15 +01:00
parent c0996823c0
commit 11843c2a71
1 changed files with 3 additions and 14 deletions

17
Jenkinsfile vendored
View File

@ -21,18 +21,7 @@ pipeline {
} else {
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
}
/*
switch (env.BRANCH_NAME) {
case 'master':
env.FRONT_PORT = SALIX_MASTER_FRONT_PORT
env.BACK_PORT = SALIX_MASTER_BACK_PORT
break
case 'test':
env.FRONT_PORT = SALIX_TEST_FRONT_PORT
env.BACK_PORT = SALIX_TEST_BACK_PORT
break
}
*/
switch (env.BRANCH_NAME) {
case 'master':
env.NODE_ENV = 'production'
@ -47,14 +36,14 @@ pipeline {
configFile(fileId: "salix.groovy",
variable: 'ENV_FILE')
]) {
load "${env.ENV_FILE}"
load env.ENV_FILE
}
configFileProvider([
configFile(fileId: "salix.${env.NODE_ENV}.groovy",
variable: 'LOCAL_ENV_FILE')
]) {
load "${env.LOCAL_ENV_FILE}"
load env.LOCAL_ENV_FILE
}
sh 'printenv'