Improving email notification

This commit is contained in:
Sergio Durigan Junior 2015-01-14 19:45:36 -05:00
parent a4baf8491e
commit 9a9dcad8d6

View file

@ -123,6 +123,8 @@ c['status'].append (html.WebStatus (http_port = 8010, authz = authz_cfg))
def MessageGDBTesters (mode, name, build, results, master_status):
"""This function is responsible for composing the message that will be
send to the gdb-testers mailing list."""
git_url = "http://gdb-build.sergiodj.net/cgit"
# Subject
subj = "Failures on %s" % name
@ -130,7 +132,7 @@ send to the gdb-testers mailing list."""
text = ""
# Buildslave name, useful for knowing the exact configuration.
text += "Builder:\n"
text += "Buildslave:\n"
text += "\t%s\n" % build.getSlavename ()
# Commits that were tested. Usually we should be dealing with
@ -144,7 +146,8 @@ send to the gdb-testers mailing list."""
# URL to find more info about what went wrong.
text += "Log URL(s):\n"
for ss in ss_list:
text += "\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision)
text += "\t<%s/%s/.git/log/qt=grep&q=%s>" % (git_url, name, ss.revision)
# text += "\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision)
# Who's to blame?
text += "Author(s) (in the same order as the commits):\n"