From d79f6ec4f4a5108ec3f203d705ff8ccb7b31134d Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 23 Dec 2019 16:17:54 +0100 Subject: [PATCH] Jenkinsfile changes --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 20efa49c4..35d0176ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ #!/usr/bin/env groovy +def props + pipeline { agent any options { @@ -32,6 +34,20 @@ pipeline { } } + configFileProvider([ + configFile(fileId: "salix.properties", + variable: 'PROPS_FILE') + ]) { + props = readProperties file: "${env.PROPS_FILE}" + } + + configFileProvider([ + configFile(fileId: "salix.${env.NODE_ENV}.properties", + variable: 'LOCAL_PROPS_FILE') + ]) { + props = readProperties defaults: props, file: "${env.LOCAL_PROPS_FILE}" + } + configFileProvider([ configFile(fileId: "salix.groovy", variable: 'ENV_FILE') @@ -47,6 +63,7 @@ pipeline { } sh 'printenv' + echo props } } stage('Install') {