Release tags for carbon, nitrogen and future releases are set as
the stream and no longer uses the format `Carbon-SR1`. Only for boron
the same format is preserved if any hotfix has to be released.
Therefore, pass stream as the default release tag for all releases
except for boron. Also the scripts are modified to set the release tag
as $STREAM by default.
https://lists.opendaylight.org/pipermail/release/2017-July/011619.html
Jira: releng-323
Change-Id: I7ecc4d3962bab741bc31efa636beb986b4b15476
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
stream:
- nitrogen:
- next-release-tag: Nitrogen
+ # todo: After boron EOL remove next-release-tag and directy pass
+ # '{stream}' to autorelease-release-tag parameter
+ next-release-tag: '{stream}'
branch: 'master'
jdk: 'openjdk8'
integration-test: nitrogen
- carbon:
- next-release-tag: Carbon
+ next-release-tag: '{stream}'
branch: 'stable/carbon'
jdk: 'openjdk8'
integration-test: carbon
# RELEASE_TAG=Beryllium-SR1 # Example
# RELEASE_BRANCH=stable/beryllium # Example
+# Set release tag as $STREAM, when no release tag is passed
+RELEASE_TAG="${RELEASE_TAG:-${STREAM^}}"
+# Ensure that the first letter of RELEASE_TAG is uppercase.
+RELEASE_TAG="${RELEASE_TAG^}"
+
# Directory to put git format-patches
PATCH_DIR="$WORKSPACE/patches"
# This script performs version bumping activities for an ODL release.
echo "---> version-bump.sh"
+# Set release tag as $STREAM, when no release tag is passed
+RELEASE_TAG="${RELEASE_TAG:-${STREAM^}}"
+# Ensure that the first letter of RELEASE_TAG is uppercase.
+RELEASE_TAG="${RELEASE_TAG^}"
+
mkdir -p "$WORKSPACE/archives"
LOG_FILE="$WORKSPACE/archives/version-bump.log"
BRANCH="$GERRIT_BRANCH"