From: Anil Belur Date: Tue, 15 Aug 2023 01:34:03 +0000 (+1000) Subject: Fix: Rename view name to lower case X-Git-Tag: v0.88.5^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9ee321253387facbfa28f44a8e3806b36247e04c;p=releng%2Fglobal-jjb.git 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 --- 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