[openqa-maintenance] start HA/SES jobs only wheen are required
This commit is contained in:
parent
8d3d3f4e17
commit
944c531187
@ -100,6 +100,7 @@
|
||||
"OS_TEST_ISSUES" : "SUSE:Updates:SLE-SERVER:12-SP3:",
|
||||
"HA_TEST_ISSUES" : "SUSE:Updates:SLE-HA:12-SP3:"
|
||||
},
|
||||
"required_issue" : "HA_TEST_ISSUES",
|
||||
"flavor" : "Server-DVD-Incidents-HA",
|
||||
"distri" : "sle",
|
||||
"archs" : [
|
||||
@ -113,6 +114,7 @@
|
||||
"HA_TEST_ISSUES" : "SUSE:Updates:SLE-HA:12-SP2:"
|
||||
},
|
||||
"flavor" : "Server-DVD-Incidents-HA",
|
||||
"required_issue" : "HA_TEST_ISSUES",
|
||||
"distri" : "sle",
|
||||
"archs" : [
|
||||
"x86_64"
|
||||
@ -124,6 +126,7 @@
|
||||
"OS_TEST_ISSUES" : "SUSE:Updates:SLE-SERVER:12-SP3:",
|
||||
"SES_TEST_ISSUES" : "SUSE:Updates:Storage:5:"
|
||||
},
|
||||
"required_issue" : "SES_TEST_ISSUES",
|
||||
"flavor" : "Server-DVD-SES-Updates",
|
||||
"distri" : "sle",
|
||||
"archs" : [
|
||||
|
@ -476,11 +476,16 @@ class OpenQABot(ReviewBot.ReviewBot):
|
||||
settings['DISTRI'] = 'sle' if 'distri' not in pmap else pmap['distri']
|
||||
issues = pmap.get('issues', {})
|
||||
issues['OS_TEST_ISSUES'] = issues.get('OS_TEST_ISSUES', product_prefix)
|
||||
required_issue = pmap.get('required_issue', False)
|
||||
for key, prefix in issues.items():
|
||||
self.logger.debug("{} {}".format(key, prefix))
|
||||
if prefix + arch in job['channels']:
|
||||
settings[key] = str(job['id'])
|
||||
need = True
|
||||
if required_issue:
|
||||
if required_issue not in settings:
|
||||
need = False
|
||||
|
||||
if need:
|
||||
update = self.project_settings[product_prefix + arch]
|
||||
update.apiurl = self.apiurl
|
||||
|
Loading…
x
Reference in New Issue
Block a user