X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-install.sh;h=48af507a5f1bf7bbae95020f20b0fc59b04e45cb;hb=32872573cb431a8479e75d159350b8184bb9d62e;hp=63d16947797f7f80902adb0a4e5ae2ca1b801607;hpb=851b0b6d0cfe84e986548fd596a9b2f18413fefd;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-install.sh b/shell/jjb-install.sh index 63d16947..48af507a 100644 --- a/shell/jjb-install.sh +++ b/shell/jjb-install.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. # @@ -10,9 +10,16 @@ ############################################################################## echo "---> jjb-install.sh" -virtualenv "$WORKSPACE/.virtualenvs/jjb" -# shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091 -source "$WORKSPACE/.virtualenvs/jjb/bin/activate" -pip install --upgrade pip -pip install --upgrade "jenkins-job-builder==$JJB_VERSION" -pip freeze +# 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 "/tmp/v/jjb" +# shellcheck source=/tmp/v/jjb/bin/activate disable=SC1091 +source "/tmp/v/jjb/bin/activate" +pip install --quiet --upgrade pip +pip install --quiet --upgrade pipdeptree +pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION" + +echo "----> Pip Dependency Tree" +pipdeptree