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,
|
# pushed to these targets. buildbot/status/*.py has a variety to choose from,
|
||||||
# including web pages, email senders, and IRC bots.
|
# including web pages, email senders, and IRC bots.
|
||||||
|
|
||||||
|
import os
|
||||||
from buildbot.status import html
|
from buildbot.status import html
|
||||||
from buildbot.status import mail
|
from buildbot.status import mail
|
||||||
|
|
||||||
web_page = html.WebStatus(http_port=8010, allowForce=True)
|
web_page = html.WebStatus(http_port=8010, allowForce=True)
|
||||||
email_notification = mail.MailNotifier(
|
c['status'] = [web_page]
|
||||||
fromaddr='webrtc-cb-watchlist@google.com',
|
|
||||||
extraRecipients=['webrtc-cb-watchlist@google.com'],
|
# Use an environment variable to easily avoid enabling e-mail for development.
|
||||||
sendToInterestedUsers=True,
|
if not os.getenv('BUILDBOT_DEVELOPMENT_MODE'):
|
||||||
mode='failing')
|
email_status = mail.MailNotifier(
|
||||||
c['status'] = [web_page, email_notification]
|
fromaddr='webrtc-cb-watchlist@google.com',
|
||||||
|
extraRecipients=['webrtc-cb-watchlist@google.com'],
|
||||||
|
sendToInterestedUsers=True,
|
||||||
|
mode='failing')
|
||||||
|
c['status'] += [email_status]
|
||||||
|
|
||||||
####### DEBUGGING OPTIONS
|
####### DEBUGGING OPTIONS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user