Skip to content

Commit

Permalink
Merge pull request #1567 from tardyp/reporter
Browse files Browse the repository at this point in the history
reporter API + MailNotifier
  • Loading branch information
tardyp committed May 16, 2015
2 parents 32f66f7 + 128b6f4 commit c5c5180
Show file tree
Hide file tree
Showing 41 changed files with 2,078 additions and 2,577 deletions.
13 changes: 8 additions & 5 deletions master/buildbot/buildslave/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from buildbot.interfaces import LatentBuildSlaveFailedToSubstantiate
from buildbot.process import metrics
from buildbot.process.properties import Properties
from buildbot.status.mail import MailNotifier
from buildbot.reporters.mail import MailNotifier
from buildbot.status.slave import SlaveStatus
from buildbot.util import ascii2unicode
from buildbot.util import service
Expand All @@ -55,9 +55,9 @@ class AbstractBuildSlave(service.BuildbotService, object):
reconfig_priority = 64

def checkConfig(self, name, password, max_builds=None,
notify_on_missing=None,
missing_timeout=10 * 60, # Ten minutes
properties=None, locks=None, keepalive_interval=3600):
notify_on_missing=None,
missing_timeout=10 * 60, # Ten minutes
properties=None, locks=None, keepalive_interval=3600):
"""
@param name: botname this machine will supply when it connects
@param password: password this machine will supply when
Expand Down Expand Up @@ -508,10 +508,13 @@ def canStartBuild(self):
return True

def _mail_missing_message(self, subject, text):
# FIXME: This should be handled properly via the event api
# we should send a missing message on the mq, and let any reporter handle that

# first, see if we have a MailNotifier we can use. This gives us a
# fromaddr and a relayhost.
buildmaster = self.botmaster.master
for st in buildmaster.status:
for st in buildmaster.services:
if isinstance(st, MailNotifier):
break
else:
Expand Down

0 comments on commit c5c5180

Please sign in to comment.