aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'buildbot_gentoo_ci/steps/logs.py')
-rw-r--r--buildbot_gentoo_ci/steps/logs.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py
index 50e3f3f..aacb8a5 100644
--- a/buildbot_gentoo_ci/steps/logs.py
+++ b/buildbot_gentoo_ci/steps/logs.py
@@ -46,9 +46,10 @@ def PersOutputOfLogParser(rc, stdout, stderr):
'status' : s['status'],
'line' : s['line'],
'search_pattern' : s['search_pattern'],
- 'phase' : s['phase'],
+ 'phase' : s['phase'].lower(),
'uuid' : s['uuid'],
'description' : s['description'],
+ 'url' : s['url'],
})
build_summery_output['summary_log_dict'] = summary_log_dict
#FIXME: Handling of stderr output
@@ -221,7 +222,7 @@ class MakeIssue(BuildStep):
for k, v in sorted(self.summary_log_dict.items()):
# get the issue error
for s in v['pattern_infos']:
- if s['search_type'] == self.error_dict['phase'] and s['status'] == 'error':
+ if s['phase'] == self.error_dict['phase'] and s['status'] == 'error':
text_issue_list.append(v['text'])
# add the issue error
self.error_dict['cpv'] = self.getProperty('log_cpv')
@@ -259,9 +260,14 @@ class MakeIssue(BuildStep):
# check if the build did fail
if v['text'].startswith(' * ERROR:') and v['text'].endswith(' phase):'):
# get phase error
- phase_error = v['text'].split(' (')[1].split(' phase')[0]
- self.error_dict['phase'] = phase_error
+ self.error_dict['phase'] = v['text'].split(' (')[1].split(' phase')[0]
error = True
+ if v['text'].startswith(' * Maintainer:'):
+ Maintainers = []
+ for email in v['text'].split(':')[1].split(' '):
+ if email != '':
+ Maintainers.append(email)
+ self.setProperty("Maintainers", Maintainers, 'Maintainers')
#FIXME: write summary_log_list to a file
# add issue/bug/pr report
if error: