Feat: Upgrade Jenkins-job-builder to 5.0.4 62/72062/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 24 Aug 2023 00:38:32 +0000 (10:38 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 24 Aug 2023 00:47:50 +0000 (10:47 +1000)
Supports urllib3 to newer DEFAULT_TIMEOUT, therefore unpin urllib3<2.0.0
Ref: https://review.opendev.org/c/jjb/python-jenkins/+/882757

Fixes Jenkins version 2.387.1 or earlier can return 'all' as view name when
requested is 'All'.

Issue: RELENG-4853
Change-Id: Idcfae769f5e5c4268380f531ad86e57aab4fbf03
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/upgrade-jjb-504-unpin-urllib3-4a02cb1c6d7f58fc.yaml [new file with mode: 0644]
requirements.txt
shell/jenkins-sandbox-cleanup.sh
shell/jjb-deploy-job.sh
shell/jjb-merge-job.sh
shell/jjb-verify-job.sh
tox.ini

index b61009a..1c91b01 100644 (file)
     disable-job: false
     github-url: "https://github.com"
     jjb-cache: "$HOME/.cache/jenkins_jobs"
-    jjb-version: 5.0.2
+    jjb-version: 5.0.4
     stream: master
     submodule-recursive: true
     submodule-timeout: 10
diff --git a/releasenotes/notes/upgrade-jjb-504-unpin-urllib3-4a02cb1c6d7f58fc.yaml b/releasenotes/notes/upgrade-jjb-504-unpin-urllib3-4a02cb1c6d7f58fc.yaml
new file mode 100644 (file)
index 0000000..1772463
--- /dev/null
@@ -0,0 +1,11 @@
+---
+issues:
+  - |
+    Supports urllib3 to newer DEFAULT_TIMEOUT, therefore unpin urllib3<2.0.0
+    Ref: https://review.opendev.org/c/jjb/python-jenkins/+/882757
+
+    Fixes Jenkins version 2.387.1 or earlier can return 'all' as view name when
+    requested is 'All'.
+upgrade:
+  - |
+    Upgrade Jenkins-job-builder to 5.0.4
index e422949..3879339 100644 (file)
@@ -2,5 +2,5 @@ reno~=2.11.2
 Sphinx~=4.2.0
 sphinx_bootstrap_theme
 sphinxcontrib-programoutput
-urllib3~=1.26.15
+urllib3
 yq
index 919bd73..dc69e2b 100644 (file)
@@ -17,7 +17,7 @@ set -euf -o pipefail
 . ~/lf-env.sh
 
 lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv \
-    jenkins-job-builder urllib3~=1.26.15
+    jenkins-job-builder
 
 # jenkins-jobs does not always open 'stdin' which may cause 'yes' to fail
 (yes || true) | jenkins-jobs -s sandbox delete-all
index 3daa573..08e64aa 100644 (file)
@@ -20,7 +20,7 @@ set -uef -o pipefail
 source ~/lf-env.sh
 
 # Version controlled by JJB_VERSION
-lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv jenkins-job-builder urllib3~=1.26.15
+lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv jenkins-job-builder
 
 # Fetch patch if gerrit project matches the jjb-deploy project
 if [ "${GERRIT_PROJECT}" == "${PROJECT}" ]; then
index 5f4c564..3b34fa8 100644 (file)
@@ -18,6 +18,6 @@ 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
+lf-activate-venv jenkins-job-builder setuptools==65.7.0
 
 jenkins-jobs update --recursive --delete-old --workers "$workers" jjb/
index 0424f74..abfda1c 100644 (file)
@@ -19,7 +19,7 @@ lf-git-validate-jira-urls
 lf-jjb-check-ascii
 
 lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv \
-    jenkins-job-builder setuptools==65.7.0 urllib3~=1.26.15
+    jenkins-job-builder setuptools==65.7.0
 
 jenkins-jobs test --recursive -o archives/job-configs --config-xml jjb/
 
diff --git a/tox.ini b/tox.ini
index 2fb00fa..bd16750 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -26,7 +26,7 @@ commands =
 [testenv:jjb]
 basepython = python3
 deps =
-    jenkins-job-builder==5.0.2
+    jenkins-job-builder==5.0.4
 commands =
     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
 
@@ -103,7 +103,7 @@ commands =
 
 [testenv:jenkins-jobs]
 deps =
-    jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:5.0.2}
+    jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:5.0.4}
 commands =
     jenkins-jobs {posargs:--help}