mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 12:49:03 +02:00
services: Update email notification config
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d0fe260e18
commit
16e53dc288
23
services.py
23
services.py
|
@ -3,21 +3,28 @@
|
|||
#
|
||||
|
||||
from buildbot.plugins import reporters
|
||||
|
||||
from yoctoabb import config
|
||||
|
||||
import os
|
||||
|
||||
services = []
|
||||
|
||||
# TODO: we'll replace this with functionality in yocto-autobuilder-helpers
|
||||
# to mail the error reports to the list
|
||||
with open(os.path.join(os.path.dirname(__file__), "default_mail.txt"), "r") as f:
|
||||
emailtext = "\n".join(f.readlines())
|
||||
|
||||
formatter = reporters.MessageFormatter(template=emailtext)
|
||||
|
||||
generator = reporters.BuildStatusGenerator(
|
||||
mode=('failing', 'warnings', 'exception', 'cancelled'),
|
||||
message_formatter=formatter,
|
||||
builders=['a-full', 'a-quick', 'buildperf-alma8', 'buildperf-debian11', 'docs'])
|
||||
|
||||
#services.append(
|
||||
# reporters.MailNotifier(fromaddr="yocto-builds@yoctoproject.org",
|
||||
# sendToInterestedUsers=False,
|
||||
# extraRecipients=["yocto-builds@yoctoproject.org"],
|
||||
# mode=('failing',))
|
||||
# reporters.MailNotifier(fromaddr="controller@yoctoproject.org",
|
||||
# extraRecipients=["yocto-builds@lists.yoctoproject.org"],
|
||||
# generators=[generator])
|
||||
#)
|
||||
|
||||
|
||||
# services.append(
|
||||
# reporters.IRC(host="irc.freenode.net",
|
||||
# nick="YoctoAutobuilderBot",
|
||||
|
|
Loading…
Reference in New Issue
Block a user