Merge "Improve verbosity in maven shell scripts"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 19 Jan 2018 01:02:36 +0000 (01:02 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Fri, 19 Jan 2018 01:02:36 +0000 (01:02 +0000)
shell/maven-build.sh
shell/maven-fetch-metadata.sh
shell/maven-javadoc-generate.sh
shell/maven-sonar.sh
shell/maven-stage.sh

index 6be1900..a807a03 100644 (file)
@@ -14,7 +14,7 @@
 
 # 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
index d3670d0..ebffa96 100644 (file)
@@ -12,7 +12,7 @@
 # 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 \
index 405b29b..891f60b 100644 (file)
@@ -13,7 +13,7 @@
 
 # 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"
index 17c509d..e0c0477 100644 (file)
@@ -14,7 +14,7 @@
 
 # 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
index 482b53f..74b74a9 100644 (file)
@@ -16,7 +16,7 @@
 # $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"