Skip to content

Commit f9cbb0c

Browse files
beikovmbellade
authored andcommitted
Bind BRANCH environment variable
1 parent 2e92cfd commit f9cbb0c

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
@@ -135,7 +135,9 @@ pipeline {
135135
// update changelog from JIRA
136136
// tags the version
137137
// changes the version to the provided development version
138-
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
138+
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
139+
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
140+
}
139141
}
140142
}
141143
}
@@ -159,7 +161,9 @@ pipeline {
159161
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
160162
// performs documentation upload and Sonatype release
161163
// push to github
162-
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
164+
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
165+
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
166+
}
163167
}
164168
}
165169
}

0 commit comments

Comments
 (0)