Change-Id: I54aba7e13e20fcef582ba1450df89e65a11561b0
Signed-off-by: Eby, Robert (re2429) <re2429@att.com>
source "$WORKSPACE/version.properties"
TARDIR=$UPLOAD_FILES_PATH
source "$WORKSPACE/version.properties"
TARDIR=$UPLOAD_FILES_PATH
-set -e -u -x -o pipefail
+# STAGING_BUILD (below) may be unset
+set -e +u -x -o pipefail
rm -fr "$TARDIR"
if [ -n "$STAGING_BUILD" ]
rm -fr "$TARDIR"
if [ -n "$STAGING_BUILD" ]
[[ ! "$VERSION" =~ -SNAPSHOT$ ]] && VERSION="${VERSION}-SNAPSHOT"
fi
[[ ! "$VERSION" =~ -SNAPSHOT$ ]] && VERSION="${VERSION}-SNAPSHOT"
fi
+# STAGING_BUILD not used past this point
+set -u
+
if [ "$PROJECT" == "addon-onap" ]
then
if [ "$PROJECT" == "addon-onap" ]
then