X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-merge-job.sh;h=9a497fd0552c973476562a9ad0bf7ec2a46649b6;hb=3b99cd4d3bec4dcd56297f28317af62f26c078bf;hp=8c54b623d4581e516af14e3c0041d78edf1fd6cc;hpb=c9d4074e828ab8d5a8455bc43059f6584708c76c;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-merge-job.sh b/shell/jjb-merge-job.sh index 8c54b623..9a497fd0 100644 --- a/shell/jjb-merge-job.sh +++ b/shell/jjb-merge-job.sh @@ -10,7 +10,14 @@ ############################################################################## echo "---> jjb-merge-job.sh" +workers="${JJB_WORKERS:-0}" + # Ensure we fail the job if any steps fail. set -eu -o pipefail -jenkins-jobs update --recursive --delete-old --workers 4 --exclude jjb-test jjb +# shellcheck disable=SC1090 +source ~/lf-env.sh + +lf-activate-venv jenkins-job-builder + +jenkins-jobs update --recursive --delete-old --workers "$workers" jjb/