From: Lott, Christopher (cl778h) Date: Thu, 1 Mar 2018 14:40:28 +0000 (-0500) Subject: Make rtd jobs verbose X-Git-Tag: v0.17.0~6 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=338c1a22f1e7eccd2224b1d9bc72cdd7ae55ebff;p=releng%2Fglobal-jjb.git Make rtd jobs verbose Add set -x flag so these scripts echo steps in Jenkins output. Change-Id: Ia09f3194407f6c94d8cb1adfbb4d32e9a4592ff6 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/shell/rtd-trigger-build.sh b/shell/rtd-trigger-build.sh index 6df9d050..21e72694 100644 --- a/shell/rtd-trigger-build.sh +++ b/shell/rtd-trigger-build.sh @@ -10,6 +10,10 @@ ############################################################################## echo "---> rtd-trigger-build.sh" +# Ensure we fail the job if any steps fail. +# DO NOT set -u +set -xe -o pipefail + if [ "$GERRIT_BRANCH" == "master" ]; then RTD_BUILD_VERSION=latest else diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index bddc23bd..61c1974e 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -11,8 +11,8 @@ echo "---> rtd-verify.sh" # Ensure we fail the job if any steps fail. -# DO NOT set -u as virtualenv's activate script has unbound variables -set -e -o pipefail +# DO NOT set -u +set -xe -o pipefail echo "---> Fetching project" if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then