From f242359eee7c654ea410031758a048aef7879ec0 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Fri, 14 Jun 2024 17:55:54 +0200 Subject: [PATCH] Bind BRANCH environment variable --- ci/release/Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/release/Jenkinsfile b/ci/release/Jenkinsfile index 399b964939..65b7085084 100644 --- a/ci/release/Jenkinsfile +++ b/ci/release/Jenkinsfile @@ -176,7 +176,9 @@ pipeline { // update changelog from JIRA // tags the version // changes the version to the provided development version - sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}" + withEnv(["BRANCH=${env.GIT_BRANCH}"]) { + sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}" + } } } } @@ -202,7 +204,9 @@ pipeline { sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) { // performs documentation upload and Sonatype release // push to github - sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}" + withEnv(["BRANCH=${env.GIT_BRANCH}"]) { + sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}" + } } } }