From: Andrew Grimberg Date: Fri, 21 Sep 2018 15:30:28 +0000 (-0700) Subject: Make sure that jjb-cleanup.sh allows unbound vars X-Git-Tag: v0.25.1~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F12712%2F1;p=releng%2Fglobal-jjb.git Make sure that jjb-cleanup.sh allows unbound vars Due to our merging of scripts in some of the build steps it's possible for this script to end up merged in with other scripts that are setting -u, this will then cause the jjb-cleanup to fail. As such, we need to explicitly allow unbound variables to be safe Change-Id: I312e9d737bffefe30a5238809dd03bde1eb0ca6b Signed-off-by: Andrew Grimberg --- diff --git a/shell/jjb-cleanup.sh b/shell/jjb-cleanup.sh index 69d1534b..ffdfe1f4 100644 --- a/shell/jjb-cleanup.sh +++ b/shell/jjb-cleanup.sh @@ -15,7 +15,7 @@ echo "---> jjb-cleanup.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 +set -e +u -o pipefail # shellcheck source="$WORKSPACE/.jjb.properties" disable=SC1091 source "$WORKSPACE/.jjb.properties"