Bind BRANCH environment variable

This commit is contained in:
Christian Beikov 2024-06-14 17:55:54 +02:00 committed by Marco Belladelli
parent 2e92cfda9a
commit f9cbb0c42d
No known key found for this signature in database
GPG Key ID: DBD6E257ABE9EA3D
1 changed files with 6 additions and 2 deletions

View File

@ -135,6 +135,7 @@ pipeline {
// update changelog from JIRA
// tags the version
// changes the version to the provided development version
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
}
}
@ -142,6 +143,7 @@ pipeline {
}
}
}
}
stage('Publish release') {
steps {
script {
@ -159,6 +161,7 @@ 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
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
}
}
@ -166,6 +169,7 @@ pipeline {
}
}
}
}
stage('Website release') {
steps {
script {