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
29
services.py
29
services.py
|
@ -3,20 +3,27 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
from buildbot.plugins import reporters
|
from buildbot.plugins import reporters
|
||||||
|
|
||||||
from yoctoabb import config
|
from yoctoabb import config
|
||||||
|
import os
|
||||||
|
|
||||||
services = []
|
services = []
|
||||||
|
|
||||||
# TODO: we'll replace this with functionality in yocto-autobuilder-helpers
|
with open(os.path.join(os.path.dirname(__file__), "default_mail.txt"), "r") as f:
|
||||||
# to mail the error reports to the list
|
emailtext = "\n".join(f.readlines())
|
||||||
# services.append(
|
|
||||||
# reporters.MailNotifier(fromaddr="yocto-builds@yoctoproject.org",
|
formatter = reporters.MessageFormatter(template=emailtext)
|
||||||
# sendToInterestedUsers=False,
|
|
||||||
# extraRecipients=["yocto-builds@yoctoproject.org"],
|
generator = reporters.BuildStatusGenerator(
|
||||||
# mode=('failing',))
|
mode=('failing', 'warnings', 'exception', 'cancelled'),
|
||||||
# )
|
message_formatter=formatter,
|
||||||
|
builders=['a-full', 'a-quick', 'buildperf-alma8', 'buildperf-debian11', 'docs'])
|
||||||
|
|
||||||
|
#services.append(
|
||||||
|
# reporters.MailNotifier(fromaddr="controller@yoctoproject.org",
|
||||||
|
# extraRecipients=["yocto-builds@lists.yoctoproject.org"],
|
||||||
|
# generators=[generator])
|
||||||
|
#)
|
||||||
|
|
||||||
|
|
||||||
# services.append(
|
# services.append(
|
||||||
# reporters.IRC(host="irc.freenode.net",
|
# reporters.IRC(host="irc.freenode.net",
|
||||||
|
@ -39,4 +46,4 @@ services = []
|
||||||
# from yoctoabb.reporters import swatbot
|
# from yoctoabb.reporters import swatbot
|
||||||
# services.append(
|
# services.append(
|
||||||
# swatbot.SwatBot("http://localhost:8000/", "buildbot-notifier", "password")
|
# swatbot.SwatBot("http://localhost:8000/", "buildbot-notifier", "password")
|
||||||
# )
|
# )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user