ci: refs #6695 use TARGET_BRANCH #1466
|
@ -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
|
||||
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"
|
||||
juan
commented
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
alexm
commented
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',
|
||||
juan
commented
Mantinles, es per a depurar Mantinles, es per a depurar
|
||||
variable: 'PROPS_FILE')
|
||||
|
|
Loading…
Reference in New Issue
contains mes simple, comilles simples en 'dev'