Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from buildbot.plugins import reporters
- c['services'] = []
- from_addr = "do_not_reply.buildbotsunrise@company.com"
- smtp_host = "mail.company.com"
- # email notifier for all builds only to admin
- all_mail_notifier = reporters.MailNotifier(
- fromaddr=from_addr,
- sendToInterestedUsers=False,
- mode='all',
- extraRecipients=['ampz9@company.com'],
- relayhost=smtp_host, smtpPort=25, smtpUser="",
- smtpPassword="")
- # email notifier for failures to the team
- failure_mail_notifier = reporters.MailNotifier(
- fromaddr=from_addr,
- sendToInterestedUsers=False, mode=('failing', 'problem', 'exception'),
- extraRecipients=[
- 'ampz9@company.com',
- 'ampz10@company.com',
- 'ampz11@company.com'
- ],
- relayhost=smtp_host, smtpPort=25, smtpUser="",
- smtpPassword="")
- c['services'].append(all_mail_notifier)
- c['services'].append(failure_mail_notifier)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement