X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/091db2e2f0b8e7a09ed5f257e30a145ef7f2aae5..c4b14d0861e2d830b7d8a98f410ffe181839bf1a:/build-hooks/post-build diff --git a/build-hooks/post-build b/build-hooks/post-build index eeb8467..3b9d3f4 100755 --- a/build-hooks/post-build +++ b/build-hooks/post-build @@ -96,12 +96,14 @@ def submit_completion_msg(succeeded, values, verbose=True, success=lambda x: x, values = dict(values) if succeeded: values['result'] = success(values['result']) + values['_extra'] = '' else: values['result'] = failure(values['result']) + values['_extra'] = '\nError: %s' % escape(sys.stdin.read()) for key in ['commit', 'pocket', 'principal']: values[key] = escape(values[key]) msg = """Submission of %(commit)s to be built in %(pocket)s %(result)s. -Build submitted by %(principal)s.""" % values +Build submitted by %(principal)s.%(_extra)s""" % values return msg def repo_creation_msg(succeeded, values, verbose=True, success=lambda x: x, failure=lambda x: x,