Fix: pin urllib3 to <2.0.0
[releng/global-jjb.git] / shell / jjb-merge-job.sh
index d3db191..5f4c564 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+# SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
 #
 ##############################################################################
 echo "---> jjb-merge-job.sh"
 
-jenkins-jobs update --recursive --delete-old --workers 4 jjb/
+workers="${JJB_WORKERS:-0}"
+
+# Ensure we fail the job if any steps fail.
+set -eu -o pipefail
+
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv jenkins-job-builder setuptools==65.7.0 urllib3~=1.26.15
+
+jenkins-jobs update --recursive --delete-old --workers "$workers" jjb/