From 9ee321253387facbfa28f44a8e3806b36247e04c Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 15 Aug 2023 11:34:03 +1000 Subject: [PATCH] Fix: Rename view name to lower case 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 --- releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml | 8 ++++++++ shell/jenkins-sandbox-cleanup.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml diff --git a/releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml b/releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml new file mode 100644 index 00000000..6ff92606 --- /dev/null +++ b/releasenotes/notes/rename-view-fdio-ef68278cce73e3f8.yaml @@ -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. diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 51970248..919bd733 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -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 -- 2.16.6