Strip legacy prefix if it's present
Migrated jobs have the legacy- prefix which makes tracking things across the migration a bit difficult. This commit strips that from the job name on db insertion. Change-Id: Ibfca7a7f4ff66ec6d3809f0ee96a98d598e27e91
This commit is contained in:
parent
2a7070995e
commit
fc0a11ebc4
@ -73,6 +73,8 @@ class SubunitRetriever(object):
|
||||
project = meta['project'].split('/')[-1]
|
||||
if project not in job_name:
|
||||
job_name = '-'.join([job_name, project])
|
||||
if job_name.startswith('legacy-'):
|
||||
job_name = job_name[7:]
|
||||
meta['build_name'] = job_name
|
||||
return meta
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user