Fix: Rename view name to lower case 51/72051/3 v0.88.5
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 15 Aug 2023 01:34:03 +0000 (11:34 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 15 Aug 2023 02:12:59 +0000 (12:12 +1000)
Jenkins version 2.387.1 or earlier can return 'all'
as view name when requested is 'All'.
Add workaround and rename the view name to lower case.

Issue: RELENG-4849
Ref: https://review.opendev.org/c/jjb/python-jenkins/+/888285
Change-Id: I374de78a497b4ba38b495a547fcdbbfd176b068e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml [new file with mode: 0644]
shell/jenkins-sandbox-cleanup.sh

diff --git a/releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml b/releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml
new file mode 100644 (file)
index 0000000..6ff9260
--- /dev/null
@@ -0,0 +1,8 @@
+---
+fixes:
+  - |
+    Rename view type to lower case.
+
+    Jenkins version 2.387.1 or earlier can return
+    'all' as view name when requested is 'All'.
+    Add workaround for that.
index 5197024..919bd73 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