refs #6915 test_master24_8 #2067

Merged
alexm merged 561 commits from test_master24_8 into master 2024-02-22 07:31:34 +00:00
1 changed files with 9 additions and 8 deletions
Showing only changes of commit 4c123247d8 - Show all commits

17
Jenkinsfile vendored
View File

@ -19,12 +19,18 @@ node {
RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
RUN_BUILD = 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}"
echo "Debug: ${env.DEBUG}"
configFileProvider([ configFileProvider([
configFile(fileId: 'salix.properties', configFile(fileId: 'salix.properties',
variable: 'PROPS_FILE') variable: 'PROPS_FILE')
]) { ]) {
def props = readProperties file: PROPS_FILE def props = readProperties file: PROPS_FILE
env.DEBUG = props.DEBUG props.each {key, value -> env.put(key, value) }
props.each {key, value -> echo "${key}: ${value}" }
} }
if (PROTECTED_BRANCH) { if (PROTECTED_BRANCH) {
@ -33,15 +39,10 @@ node {
variable: 'BRANCH_PROPS_FILE') variable: 'BRANCH_PROPS_FILE')
]) { ]) {
def props = readProperties file: BRANCH_PROPS_FILE def props = readProperties file: BRANCH_PROPS_FILE
env.BACK_REPLICAS = props.BACK_REPLICAS props.each {key, value -> env.put(key, value) }
env.NODE_ENV = props.NODE_ENV props.each {key, value -> echo "${key}: ${value}" }
} }
} }
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
echo "Node: ${env.NODE_NAME}"
echo "Workspace: ${env.WORKSPACE}"
echo "Debug: ${env.DEBUG}"
} }
} }
pipeline { pipeline {