Skip to content

Commit f242359

Browse files
committed
Bind BRANCH environment variable
1 parent 3ba214f commit f242359

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/release/Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ pipeline {
176176
// update changelog from JIRA
177177
// tags the version
178178
// changes the version to the provided development version
179-
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
179+
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
180+
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
181+
}
180182
}
181183
}
182184
}
@@ -202,7 +204,9 @@ pipeline {
202204
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
203205
// performs documentation upload and Sonatype release
204206
// push to github
205-
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
207+
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
208+
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
209+
}
206210
}
207211
}
208212
}

0 commit comments

Comments
 (0)