X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-install.sh;h=af2f42c5f86741825ab479dc7b43a6ff8cdd1189;hb=4e18e5e3a78806b47a94ce6e337366bf1893697c;hp=63d16947797f7f80902adb0a4e5ae2ca1b801607;hpb=851b0b6d0cfe84e986548fd596a9b2f18413fefd;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-install.sh b/shell/jjb-install.sh index 63d16947..af2f42c5 100644 --- a/shell/jjb-install.sh +++ b/shell/jjb-install.sh @@ -10,6 +10,10 @@ ############################################################################## echo "---> jjb-install.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 + virtualenv "$WORKSPACE/.virtualenvs/jjb" # shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091 source "$WORKSPACE/.virtualenvs/jjb/bin/activate"