X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/243aac27c57ab51d8cf232163fcf9cd9a693313c..9394c848bfeff3ef4da19e950a238f2229498d83:/build-hooks/post-build diff --git a/build-hooks/post-build b/build-hooks/post-build index d9dfb27..60a5ab3 100755 --- a/build-hooks/post-build +++ b/build-hooks/post-build @@ -78,17 +78,13 @@ def build_completion_msg(succeeded, values, verbose=True, success=lambda x: x, f if succeeded: values['result'] = success(values['result']) msg = """Build of %(package)s %(version)s in %(pocket)s %(result)s. - -Branch %(pocket)s has been advanced to %(short_commit)s. - -(Build %(build_id)s was submitted by %(principal)s at %(inserted_at)s.)""" % values +Job submitted by %(principal)s at %(inserted_at)s. +Branch %(pocket)s has been advanced to %(short_commit)s.""" % values else: values['result'] = failure(values['result']) - msg = """Build of %(package)s %(version)s in %(pocket)s %(result)s while %(failed_stage)s. - -%(traceback)s - -(Build %(build_id)s was submitted by %(principal)s at %(inserted_at)s.)""" % values + msg = """Build of %(package)s version %(version)s in %(pocket)s %(result)s while %(failed_stage)s. +Job submitted by %(principal)s at %(inserted_at)s. +Error: %(traceback)s""" % values return msg def submit_completion_msg(succeeded, values, verbose=True, success=lambda x: x, failure=lambda x: x): @@ -184,7 +180,7 @@ def main(): 'short_commit' : short_commit, 'traceback' : build.traceback, 'version' : build.version, - 'default_instance' : 'build_%(build_id)s', + 'default_instance' : 'b%(build_id)s', 'default_subject' : 'XVM build %(result)s: %(package)s %(version)s in %(pocket)s'} if build.succeeded: assert prog == POST_BUILD