Bind BRANCH environment variable
This commit is contained in:
parent
3ba214f7bd
commit
f242359eee
|
@ -176,6 +176,7 @@ pipeline {
|
||||||
// update changelog from JIRA
|
// update changelog from JIRA
|
||||||
// tags the version
|
// tags the version
|
||||||
// changes the version to the provided development 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}"
|
sh ".release/scripts/prepare-release.sh ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,6 +184,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Publish release') {
|
stage('Publish release') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
@ -202,6 +204,7 @@ pipeline {
|
||||||
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
|
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
|
||||||
// performs documentation upload and Sonatype release
|
// performs documentation upload and Sonatype release
|
||||||
// push to github
|
// push to github
|
||||||
|
withEnv(["BRANCH=${env.GIT_BRANCH}"]) {
|
||||||
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
|
sh ".release/scripts/publish.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION} ${env.DEVELOPMENT_VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -209,6 +212,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Website release') {
|
stage('Website release') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue