STORY 2010790: Handle 'all' view name when requested 'All'

Jenkins version 2.387.1 or earlier can return 'all' as view name
when requested is 'All'. Add workaround for that.

Change-Id: I6b5327a5f969607ca4838a13bbac838f44e76ccb
This commit is contained in:
Vsevolod Fedorov 2023-07-12 17:46:11 +03:00
parent 5a98031aee
commit a8f0d8cfda
1 changed files with 2 additions and 0 deletions

View File

@ -1798,6 +1798,8 @@ class Jenkins(object):
return None
else:
actual = json.loads(response)['name']
if actual == 'all':
actual = 'All'
if actual != short_name:
raise JenkinsException(
'Jenkins returned an unexpected view name %s '