ci: refs#6706 Jenkinsfile fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-02-06 12:14:00 +01:00
parent 5c48d8c6b9
commit 4067108258
1 changed files with 8 additions and 6 deletions

14
Jenkinsfile vendored
View File

@ -19,16 +19,12 @@ 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
props.each { key, value -> env[key] = value }
env.DEBUG = props.DEBUG
}
if (PROTECTED_BRANCH) {
@ -37,9 +33,15 @@ node {
variable: 'BRANCH_PROPS_FILE')
]) {
def props = readProperties file: BRANCH_PROPS_FILE
props.each { key, value -> env[key] = value }
env.BACK_REPLICAS = props.BACK_REPLICAS
env.NODE_ENV = props.NODE_ENV
}
}
// 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 {