...
If you're creating a new minor release, you will skip the above step and simply check out the release branchthe already existing branch for that version:
Code Block |
---|
|
$ git checkout -b release-$SHORT_RELEASE_VERSION |
Now, create a release branch:
Code Block |
---|
|
mvn release:branch \
-DbranchName=${BRANCH_NAME} \
-DupdateWorkingCopyVersions=false \
-DupdateBranchVersions=true \
-DreleaseVersion="${VERSION}-SNAPSHOT" |
Check out the release branch.
Code Block |
---|
|
git checkout ${BRANCH_NAME} |
The rest of this guide assumes that commands are run in the root (or tools directory) of a repository on ${BRANCH_NAME}
with on the branch of the release version with the above environment variables set.
...
Code Block |
---|
|
RC_NUM="1"
TAG="release-${VERSION}-rc${RC_NUM}" |
Now, create a release branch:
Code Block |
---|
|
$ cd tools
tools $ tools $ OLD_VERSION=$CURRENT_SNAPSHOT_VERSION NEW_VERSION=$RELEASE_VERSION RELEASE_CANDIDATE=$RC_NUM releasing/create_release_branch.sh |
Use Maven release plugin to build the release artifacts, as follows:
...