Fix: Rename view name to All 56/72656/11
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 19 Feb 2024 01:16:46 +0000 (11:16 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 27 Feb 2024 22:26:01 +0000 (08:26 +1000)
Rename view name 'All'. JJB 6x has introduced a
regression with view name that causing view updates
to fail. The workaround it to use 'All'.

Error:
Unrecognized view-type: All (supported types are: all,
delivery_pipeline, list, nested, pipeline, sectioned)

Update the JJB version in tox for comparing xml output.

Issue: RELENG-5144
Change-Id: I409d2ef2c14b5c5e70c8edb13a802b3c4aae410c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/view-name-bug-jjb-6x-d5dd611244c0de0c.yaml [new file with mode: 0644]
shell/jenkins-sandbox-cleanup.sh
tox.ini

diff --git a/releasenotes/notes/view-name-bug-jjb-6x-d5dd611244c0de0c.yaml b/releasenotes/notes/view-name-bug-jjb-6x-d5dd611244c0de0c.yaml
new file mode 100644 (file)
index 0000000..38b11a7
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Rename view name 'All'. JJB 6x has introduced a regression with
+    view name that causing view updates to fail on sandbox cleanup.
index dc69e2b..10f3b29 100644 (file)
@@ -25,7 +25,7 @@ lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv \
 # Recreate the All default view.
 cat << 'EOF' > all-view.yaml
 - view:
-    name: all
+    name: All
     view-type: all
 EOF
 jenkins-jobs -s sandbox update -v all-view.yaml
diff --git a/tox.ini b/tox.ini
index a226bcd..2cf56b6 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -37,7 +37,7 @@ commands =
 [testenv:jjb-compare-xml]
 basepython = python3
 deps =
-    jenkins-job-builder
+    jenkins-job-builder==6.0.0
 allowlist_externals =
     ./jjb-compare-xml.sh
 commands =