openqa-maintenance: Quick fixes for kgraft jobs

This commit is contained in:
Ondřej Súkup 2017-07-03 16:52:50 +02:00
parent 59f906e82f
commit 4eb39bd6d7
No known key found for this signature in database
GPG Key ID: 18E6D11A219AF3B7
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@
"ARCH": "x86_64",
"DISTRI": "sle",
"FLAVOR": "Server-DVD-Incidents-Kernel",
"VERSION": "12",
"KGRAFT": "1"
}
],

View File

@ -184,10 +184,12 @@ class SUSEUpdate(Update):
# incident_id as part of BUILD
if kgraft_target:
incident_id = re.match(r".*:(\d+)$", action.src_project).group(1)
name = '.kgraft.'
settings['KGRAFT'] = '1'
else:
incident_id = re.match(r".*:(\d+)$", kaction.src_project).group(1)
name = '.kernel.'
name = '.kgraft.' if kgraft_target else '.kernel.'
# discard jobs without 'start'
settings['start'] = True
settings['BUILD'] = ':' + req.reqid + name + incident_id