Fix: Update JJB to 5.0.2 75/71575/1
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 17 Apr 2023 22:00:14 +0000 (08:00 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 17 Apr 2023 22:00:14 +0000 (08:00 +1000)
JJB's 5.0.1 has a bug that return an error when a macro is
set as null. This issue is resolved in 5.0.2.

TypeError: 'NoneType' object is not a mapping

Issue: RELENG-4686
Change-Id: Iba6680ca7e3d54ca88b4854d9ba40006efe3f3e2
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/upgrade-jjb-to-502-b923f6cf518985f5.yaml [new file with mode: 0644]
tox.ini

index add2505..1dc14b2 100644 (file)
     disable-job: false
     github-url: "https://github.com"
     jjb-cache: "$HOME/.cache/jenkins_jobs"
-    jjb-version: 5.0.1
+    jjb-version: 5.0.2
     stream: master
     submodule-recursive: true
     submodule-timeout: 10
diff --git a/releasenotes/notes/upgrade-jjb-to-502-b923f6cf518985f5.yaml b/releasenotes/notes/upgrade-jjb-to-502-b923f6cf518985f5.yaml
new file mode 100644 (file)
index 0000000..4b81d0e
--- /dev/null
@@ -0,0 +1,12 @@
+prelude: >
+  JJB's 5.0.1 has a bug that return an error.
+  TypeError: 'NoneType' object is not a mapping
+issues:
+  - |
+    This breaks the JJB test on the existing ci-man repositores when the
+    macro is null value.
+upgrade:
+  - |
+    Upgrade Jenkins-job-builder to 5.0.2 which has the fix for the issue.
+
+    Ref: https://review.opendev.org/c/jjb/jenkins-job-builder/+/880589
diff --git a/tox.ini b/tox.ini
index 5b5b138..2fb00fa 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -26,7 +26,7 @@ commands =
 [testenv:jjb]
 basepython = python3
 deps =
-    jenkins-job-builder==5.0.1
+    jenkins-job-builder==5.0.2
 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.1}
+    jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:5.0.2}
 commands =
     jenkins-jobs {posargs:--help}