Skip to content

Commit

Permalink
use default_branch variable
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 authored and juanluisrp committed Sep 26, 2023
1 parent 54bf883 commit 5b9a6d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pipeline {
environment {
GIT_NAME = "geonetwork-eea"
registry = "eeacms/eea-geonetwork"
default_branch = "eea-4.2.0"
}

stages {
Expand All @@ -16,7 +17,7 @@ pipeline {
}
steps {
script{
if (env.BRANCH_NAME == 'eea-4.2.0') {
if (env.BRANCH_NAME == env.default_branch ) {
tagName = GIT_COMMIT.take(8)
} else {
tagName = "$BRANCH_NAME"
Expand Down

0 comments on commit 5b9a6d7

Please sign in to comment.