X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-deploy-job.sh;h=152a02e1a8a320afe0f75e3b98f623948a957d66;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=5efb9f48ec2905f418ea4d4466582da488f49699;hpb=1f7e43e9b006e9e40cbf1ea0351a2aabf3ab811c;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-deploy-job.sh b/shell/jjb-deploy-job.sh index 5efb9f48..152a02e1 100644 --- a/shell/jjb-deploy-job.sh +++ b/shell/jjb-deploy-job.sh @@ -14,10 +14,13 @@ echo "---> jjb-deploy-job.sh" # Ensure we fail the job if any steps fail. -set -e -o pipefail +set -uef -o pipefail -# shellcheck source=/tmp/v/jenkins-job-builder/bin/activate disable=SC1091 -source "/tmp/v/jenkins-job-builder/bin/activate" +# shellcheck disable=SC1090 +source ~/lf-env.sh + +# Version controlled by JJB_VERSION +lf-activate-venv jenkins-job-builder # Fetch patch if gerrit project matches the jjb-deploy project if [ "${GERRIT_PROJECT}" == "${PROJECT}" ]; then