Jenkinsfile changes
gitea/salix/test There was a failure building this commit
Details
gitea/salix/test There was a failure building this commit
Details
This commit is contained in:
parent
11843c2a71
commit
d79f6ec4f4
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue