From 338c1a22f1e7eccd2224b1d9bc72cdd7ae55ebff Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Thu, 1 Mar 2018 09:40:28 -0500 Subject: [PATCH] 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) --- shell/rtd-trigger-build.sh | 4 ++++ shell/rtd-verify.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.16.6