Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-web-pages
Commits
f18af632
Unverified
Commit
f18af632
authored
Sep 06, 2021
by
Dumitru Corini
Committed by
GitHub
Sep 06, 2021
Browse files
chore(release): Add push tag to community (#88)
* chore(release): Add push tag to community
parent
bea9cd18
Changes
1
Hide whitespace changes
Inline
Side-by-side
infrastructure/createTag.groovy
View file @
f18af632
...
...
@@ -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"
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment