X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-merge-job.sh;h=0a05c4f0871505cda976d4708eda454eecf74fed;hb=2a10c83b2d506008cc6c01c134515fb6328e1f3a;hp=4a8d23aac773ecc4484d1190ce58f3f44d6e0ac6;hpb=0cd4f5d8c5fc52e167cd19ab00bddec4f7f0c190;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-merge-job.sh b/shell/jjb-merge-job.sh index 4a8d23aa..0a05c4f0 100644 --- a/shell/jjb-merge-job.sh +++ b/shell/jjb-merge-job.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,7 +10,9 @@ ############################################################################## 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 jjb/ +jenkins-jobs update --recursive --delete-old --workers "$workers" jjb/