summaryrefslogtreecommitdiff
path: root/zuul/reporter
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2017-07-18 14:19:11 -0700
committerJames E. Blair <jeblair@redhat.com>2017-07-18 14:19:11 -0700
commit6f6997350f53ffd365737763049fba75cb9c80f3 (patch)
treeb8402c877a200b79e93718d79bd9083b7c8aedda /zuul/reporter
parent679b0dc0eca59b82329d56ad5781445901c70a10 (diff)
downloadzuul-6f6997350f53ffd365737763049fba75cb9c80f3.tar.gz
Return executor errors to user
There are some errors that the executor may encounter where it will be unable to, or refuse to, run a job. We know that these errors will not be corrected by retrying the build, so return them as errors to the user. The build result will be "ERROR" and the message which is brief, but hopefully sufficient to illuminate the problem, will be added to the job report. Change-Id: Iad486199de19583eb1e9f67c89a8ed8dac75dea1 Story: 2001105 Story: 2001106
Diffstat (limited to 'zuul/reporter')
-rw-r--r--zuul/reporter/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/zuul/reporter/__init__.py b/zuul/reporter/__init__.py
index 95b9208ce..49181a77f 100644
--- a/zuul/reporter/__init__.py
+++ b/zuul/reporter/__init__.py
@@ -138,7 +138,11 @@ class BaseReporter(object, metaclass=abc.ABCMeta):
elapsed = ' in %ds' % (s)
else:
elapsed = ''
+ if build.error_detail:
+ error = ' ' + build.error_detail
+ else:
+ error = ''
name = job.name + ' '
- ret += '- %s%s : %s%s%s\n' % (name, url, result, elapsed,
- voting)
+ ret += '- %s%s : %s%s%s%s\n' % (name, url, result, error,
+ elapsed, voting)
return ret