There is no harm in enabling debug level verbosity for these scripts
and may help in improving troubleshooting.
Change-Id: I9edfee2f7d2415117d854ad7cdba280cc9751004
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
# Ensure we fail the job if any steps fail.
-set -e -o pipefail
+set -xe -o pipefail
set +u
export MAVEN_OPTS
# Uses wget to fetch a project's maven-metadata.xml files from a Maven repository.
# Ensure we fail the job if any steps fail.
-set -eu -o pipefail
+set -xeu -o pipefail
project=$(xmlstarlet sel \
-N "x=http://maven.apache.org/POM/4.0.0" -t \
# DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
# Ensure we fail the job if any steps fail.
-set -e -o pipefail
+set -xe -o pipefail
set +u
JAVADOC_DIR="$WORKSPACE/archives/javadoc"
# DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
# Ensure we fail the job if any steps fail.
-set -e -o pipefail
+set -xe -o pipefail
set +u
export MAVEN_OPTS
# $STAGING_PROFILE_ID : Provided by a job parameter.
# Ensure we fail the job if any steps fail.
-set -eu -o pipefail
+set -xeu -o pipefail
TMP_FILE="$(mktemp)"
lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"