Make it easier to avoid sending out e-mail during buildbot development
BUG=None TEST=Tested on local master+slave. Review URL: https://webrtc-codereview.appspot.com/431001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1809 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
472f32d9c9
commit
8fd937e664
@ -364,16 +364,21 @@ c['builders'] = [
|
||||
# pushed to these targets. buildbot/status/*.py has a variety to choose from,
|
||||
# including web pages, email senders, and IRC bots.
|
||||
|
||||
import os
|
||||
from buildbot.status import html
|
||||
from buildbot.status import mail
|
||||
|
||||
web_page = html.WebStatus(http_port=8010, allowForce=True)
|
||||
email_notification = mail.MailNotifier(
|
||||
c['status'] = [web_page]
|
||||
|
||||
# Use an environment variable to easily avoid enabling e-mail for development.
|
||||
if not os.getenv('BUILDBOT_DEVELOPMENT_MODE'):
|
||||
email_status = mail.MailNotifier(
|
||||
fromaddr='webrtc-cb-watchlist@google.com',
|
||||
extraRecipients=['webrtc-cb-watchlist@google.com'],
|
||||
sendToInterestedUsers=True,
|
||||
mode='failing')
|
||||
c['status'] = [web_page, email_notification]
|
||||
c['status'] += [email_status]
|
||||
|
||||
####### DEBUGGING OPTIONS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user