Unverified Commit f18af632 authored by Dumitru Corini's avatar Dumitru Corini Committed by GitHub
Browse files

chore(release): Add push tag to community (#88)

* chore(release): Add push tag to community
parent bea9cd18
......@@ -6,6 +6,7 @@ node {
stage('Tag') {
tag = params.TAG_NAME
branch = params.BASE_BRANCH
pushTagToCommunity = params.pushTagToCommunity
withEnv(["PATH=${env.JAVA_HOME_11}/bin:${env.PATH}", "JAVA_HOME=${env.JAVA_HOME_11}"]) {
withCredentials([usernamePassword(
credentialsId: 'github',
......@@ -15,6 +16,10 @@ node {
sh "git checkout $branch"
sh "./gradlew release -Prelease.customUsername=${GIT_USERNAME} -Prelease.customPassword=${GIT_PASSWORD} -Prelease.version=$tag"
if (pushTagToCommunity) {
sh "git remote add remote.origin.community.url https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/bonitasoft/bonita-web-pages.git"
sh "git push remote.origin.community.url $tag"
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment