Change-Id: I5547e0c4cb77ee80e34cbfce8e848d384b3ccae9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
PATCH_DIR="$WORKSPACE/patches"
echo "$RELEASE_TAG"
PATCH_DIR="$WORKSPACE/patches"
echo "$RELEASE_TAG"
-lftools version release "$RELEASE_TAG"
+# Remove this case statement when Carbon is no longer supported.
+# Nitrogen onwards we do not want to use the release tag so simply need to
+# strip xml files of -SNAPSHOT tags.
+case "$RELEASE_TAG" in
+ Boron*|Carbon*)
+ lftools version release "$RELEASE_TAG"
+ ;;
+ *)
+ find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//'
+ ;;
+esac
git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true"
git commit -am "Release $RELEASE_TAG"
git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true"
git commit -am "Release $RELEASE_TAG"
# This script performs version bumping activities for an ODL release.
echo "---> version-bump.sh"
# 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^}"
+# The only purpose of RELEASE_TAG in this script is to set the Gerrit topic.
+# It is also used as a placeholder for version bumping but gets wiped out
+# immediately to bump versions by x.y.(z+1).
+RELEASE_TAG="${STREAM^}"
mkdir -p "$WORKSPACE/archives"
LOG_FILE="$WORKSPACE/archives/version-bump.log"
mkdir -p "$WORKSPACE/archives"
LOG_FILE="$WORKSPACE/archives/version-bump.log"