ci: refs #6695 use TARGET_BRANCH #1466
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1466
Loading…
Reference in New Issue
No description provided.
Delete Branch "6695-fix_CHANGE_TARGET"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ci: refs #6695 comment out test stages in Jenkinsfileto ci: refs #6695 use TARGET_BRANCH@ -24,3 +24,3 @@
IS_PROTECTED_BRANCH = PROTECTED_BRANCH.contains(env.BRANCH_NAME)
IS_LATEST = ['master', 'main'].contains(env.BRANCH_NAME)
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
Ns si estava de antes
@ -25,4 +26,1 @@
// https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
echo "NODE_NAME: ${env.NODE_NAME}"
echo "WORKSPACE: ${env.WORKSPACE}"
Mantinles, es per a depurar
@ -21,3 +20,3 @@
'beta'
].contains(env.BRANCH_NAME)
]
contains mes simple, comilles simples en 'dev'
@ -22,2 +21,3 @@
].contains(env.BRANCH_NAME)
]
TARGET_BRANCH = PROTECTED_BRANCH.find { it == env.CHANGE_TARGET } ?: "dev"
COMPOSE_TAG , defineixla en el stage E2E
New commits pushed, approval review dismissed automatically according to repository settings
@ -113,6 +113,7 @@ pipeline {
}
steps {
script {
COMPOSE_TAG = PROTECTED_BRANCH.contains(env.CHANGE_TARGET) ? env.CHANGE_TARGET : 'dev'
Ficala en environment, si no no l'agafara
@ -123,3 +124,3 @@
post {
always {
sh "docker-compose ${env.COMPOSE_PARAMS} down"
sh "docker-compose ${env.COMPOSE_PARAMS} down -v"
Vols
-v
o era per a depurar?