#853 - Fine tune release script to allow ticket number.

Resolves: #1043
This commit is contained in:
Greg Turnquist
2019-03-05 09:26:52 -06:00
parent 4decff504e
commit c64aaacd46
2 changed files with 8 additions and 5 deletions

View File

@@ -24,9 +24,11 @@ git config core.commentchar "/"
1. Create a new release (on the main branch).
+
----
% ci/create-release.sh <release version> <next snapshot version>
% ci/create-release.sh <ticket> <release version> <next snapshot version>
----
+
NOTE: Because <ticket> starts with `#`, it must be prefix on the command line with `\`, e.g. `ci/create-release.sh \#123 1.0.0.M1 1.0.0.BUILD-SNAPSHOT`.
+
2. With the release tagged, push the tagged version to the release branch.
+
----

View File

@@ -2,13 +2,14 @@
set -euo pipefail
RELEASE=$1
SNAPSHOT=$2
TICKET=$1
RELEASE=$2
SNAPSHOT=$3
# Bump up the version in pom.xml to the desired version and commit the change
./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
git add .
git commit --message "Releasing Spring HATEOAS v$RELEASE"
git commit --message "$ISSUE - Releasing Spring HATEOAS v$RELEASE."
# Tag the release
git tag -s v$RELEASE -m "v$RELEASE"
@@ -16,6 +17,6 @@ git tag -s v$RELEASE -m "v$RELEASE"
# Bump up the version in pom.xml to the next snapshot
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false
git add .
git commit --message "Continue development on v$SNAPSHOT"
git commit --message "$ISSUE - Continue development on v$SNAPSHOT."