Make sure that jjb-cleanup.sh allows unbound vars 16/12716/1 v0.24.x
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 21 Sep 2018 15:30:28 +0000 (08:30 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 21 Sep 2018 15:39:42 +0000 (08:39 -0700)
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: Idb85e8503977b313b4b6ca53ff9f77242c93ad68
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
shell/jjb-cleanup.sh

index 69d1534..ffdfe1f 100644 (file)
@@ -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"