ci: refs#6706 Jenkinsfile print properties
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
28168130ae
commit
19080e348a
|
@ -19,12 +19,17 @@ node {
|
|||
RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
|
||||
RUN_BUILD = PROTECTED_BRANCH && FROM_GIT
|
||||
|
||||
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
|
||||
echo "Node: ${env.NODE_NAME}"
|
||||
echo "Workspace: ${env.WORKSPACE}"
|
||||
|
||||
configFileProvider([
|
||||
configFile(fileId: 'salix.properties',
|
||||
variable: 'PROPS_FILE')
|
||||
]) {
|
||||
def props = readProperties file: PROPS_FILE
|
||||
env.DEBUG = props.DEBUG
|
||||
props.each { key, value -> env[key] = value }
|
||||
props.each { key, value -> println "${key}: ${value}" }
|
||||
}
|
||||
|
||||
if (PROTECTED_BRANCH) {
|
||||
|
@ -33,15 +38,10 @@ node {
|
|||
variable: 'BRANCH_PROPS_FILE')
|
||||
]) {
|
||||
def props = readProperties file: BRANCH_PROPS_FILE
|
||||
env.BACK_REPLICAS = props.BACK_REPLICAS
|
||||
env.NODE_ENV = props.NODE_ENV
|
||||
props.each { key, value -> env[key] = value }
|
||||
props.each { key, value -> println "${key}: ${value}" }
|
||||
}
|
||||
}
|
||||
|
||||
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
|
||||
echo "Node: ${NODE_NAME}"
|
||||
echo "Workspace: ${WORKSPACE}"
|
||||
echo "Debug: ${env.DEBUG}"
|
||||
}
|
||||
}
|
||||
pipeline {
|
||||
|
|
Loading…
Reference in New Issue