Groovy web console

subscribe to the feed Subscribe
to this
site
Packaging Workaround (via #groovywebconsole)
tweet this snippet Tweet
this
script

Packaging Workaround

Published 8 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
BRANCH_NAME = "feature/doc-develop"
ORIG_BRANCH_NAME = "$BRANCH_NAME"
BRANCH_NAME = "${BRANCH_NAME}".replaceAll('/', '--slash--')
println "When building artifacts, use BRANCH_NAME: $BRANCH_NAME"
println "When performing git operations, use ORIG_BRANCH_NAME: $ORIG_BRANCH_NAME"