yocto-autobuilder2/services.py
Richard Purdie b172ee87fe wikilog: Complete porting to new buildbot codebase and py3
Finish the porting work started by Joshua Lock, accounting for changes
in buildbot APIs/data model and changes from py3, particular around
character encoding.

This also changes the behaviour of the plugin slightly. We now
use the build URL in the header to match builds. With the new codebase
we can walk the parent tree of triggers builds to ensure we always have
the correct parent build url. This means we can drop a lot of the older
more imprecise build matching logic.

Also simplify the format in the wiki log to one output format which lists
all step failures for each build, even in the parent case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-14 22:49:01 +01:00

34 lines
1.1 KiB
Python

from buildbot.plugins import reporters
from yoctoabb import config
services = []
# TODO: we'll replace this with functionality in yocto-autobuilder-helpers
# to mail the error reports to the list
# services.append(
# reporters.MailNotifier(fromaddr="yocto-builds@yoctoproject.org",
# sendToInterestedUsers=False,
# extraRecipients=["yocto-builds@yoctoproject.org"],
# mode=('failing',))
# )
# services.append(
# reporters.IRC(host="irc.freenode.net",
# nick="YoctoAutobuilderBot",
# password=""
# notify_events={
# 'successToFailure': 1,
# 'failureToSuccess': 0
# },
# channels=["yocto"],
# noticeOnChannel=True))
# from yoctoabb.reporters import wikilog
# services.append(
# wikilog.WikiLog("https://wiki.yoctoproject.org/wiki/api.php",
# "User", "password", "LogPage",
# "Production Cluster")
# )