X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-deploy-job.sh;h=f62b7df0ae9953efff39f6511c4eff8bb115af13;hb=76aaece53118efec0bdcd003efb31f03d6286c92;hp=99ef3678e47e006b96c93a66eafb91afc7a9c7c8;hpb=3fba00b0773a59eed76521103afb0a62deb79786;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-deploy-job.sh b/shell/jjb-deploy-job.sh index 99ef3678..f62b7df0 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 --python python3 --venv-file /tmp/.jjb_venv jenkins-job-builder setuptools==65.7.0 # Fetch patch if gerrit project matches the jjb-deploy project if [ "${GERRIT_PROJECT}" == "${PROJECT}" ]; then @@ -35,4 +38,5 @@ if [ -z "${JOB_NAME//\*/}" ]; then exit 1 fi +echo "Deploying Job $JOB_NAME to sandbox" jenkins-jobs -s sandbox update --jobs-only --recursive --workers 4 jjb/ "$JOB_NAME"