diff --git a/pipelines/shared/Jenkinsfile b/pipelines/shared/Jenkinsfile index 5cf9b16..7848a73 100644 --- a/pipelines/shared/Jenkinsfile +++ b/pipelines/shared/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { } environment { GIT_REPO = "${params.gitRepo}" - GIT_BRANCH = "${params.gitBranch}" + GIT_BRANCH = "${params.gitTag != null && params.gitTag != "" ? params.gitTag : params.gitBranch}" GITHUB_PRIVATE_REPO = "${params.githubToken != null && params.githubToken != "" ? 'true' : ''}" } steps {