Skip to content

Commit d0f86fe

Browse files
gregturnmp911de
authored andcommitted
#1101 - Adapt new-issue-branch to handle calver and old versioning.
Original pull request: #1102.
1 parent 14cf26e commit d0f86fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: etc/scripts/new-issue-branch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -x
22
#
33
# This script creates a new local issue branch for the given issue id.
44
# Previous changes are stashed before the issue branch is created and are reapplied after branch creation.
@@ -24,7 +24,7 @@ OLD_VERSION_TMP=$(mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evalua
2424
OLD_POM_VERSION=${OLD_VERSION_TMP:?"Could not extract current project version from pom.xml"}
2525

2626
# Replaces BUILD in BUILD-SNAPSHOT with the given TICKET_ID
27-
NEW_POM_VERSION=${OLD_POM_VERSION/"BUILD"/$TICKET_ID}
27+
NEW_POM_VERSION=${OLD_POM_VERSION/"-SNAPSHOT"/"-${TICKET_ID}-SNAPSHOT"}
2828
ISSUE_BRANCH="issue/$TICKET_ID"
2929

3030
echo "Creating feature branch $TICKET_ID: $OLD_POM_VERSION -> $NEW_POM_VERSION"

0 commit comments

Comments
 (0)