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>
--- /dev/null
+---
+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.
# 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