ci: refs #6695 use TARGET_BRANCH #1466

Merged
alexm merged 27 commits from 6695-fix_CHANGE_TARGET into dev 2025-02-27 08:22:36 +00:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit 6f688c337e - Show all commits

11
Jenkinsfile vendored
View File

@ -12,18 +12,23 @@ def BRANCH_ENV = [
node {
stage('Setup') {
env.NODE_ENV = BRANCH_ENV[env.BRANCH_NAME] ?: 'dev'
GIT_PROTECTED_BRANCH = [
PROTECTED_BRANCH = [
'dev',
'test',
'master',
'main',
'beta'
]
alexm marked this conversation as resolved
Review

contains mes simple, comilles simples en 'dev'

contains mes simple, comilles simples en 'dev'
PROTECTED_BRANCH = GIT_PROTECTED_BRANCH + ['main','beta']
TARGET_BRANCH = GIT_PROTECTED_BRANCH.find { it == env.CHANGE_TARGET } ?: "dev"
TARGET_BRANCH = PROTECTED_BRANCH.find { it == env.CHANGE_TARGET } ?: "dev"
Outdated
Review

COMPOSE_TAG , defineixla en el stage E2E

COMPOSE_TAG , defineixla en el stage E2E
IS_PROTECTED_BRANCH = PROTECTED_BRANCH.contains(env.BRANCH_NAME)
IS_LATEST = ['master', 'main'].contains(env.BRANCH_NAME)
alexm marked this conversation as resolved Outdated
Outdated
Review

Ns si estava de antes

Ns si estava de antes
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
echo "NODE_NAME: ${env.NODE_NAME}"
echo "WORKSPACE: ${env.WORKSPACE}"
configFileProvider([
configFile(fileId: 'salix-front.properties',
Outdated
Review

Mantinles, es per a depurar

Mantinles, es per a depurar
variable: 'PROPS_FILE')