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

This commit is contained in:
Juan Ferrer 2019-12-23 16:17:54 +01:00
parent 11843c2a71
commit d79f6ec4f4
1 changed files with 17 additions and 0 deletions

17
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def props
pipeline { pipeline {
agent any agent any
options { 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([ configFileProvider([
configFile(fileId: "salix.groovy", configFile(fileId: "salix.groovy",
variable: 'ENV_FILE') variable: 'ENV_FILE')
@ -47,6 +63,7 @@ pipeline {
} }
sh 'printenv' sh 'printenv'
echo props
} }
} }
stage('Install') { stage('Install') {