Advertisement
Guest User

Untitled

a guest
Nov 29th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. from buildbot.plugins import reporters
  2.  
  3. c['services'] = []
  4.  
  5. from_addr = "do_not_reply.buildbotsunrise@company.com"
  6. smtp_host = "mail.company.com"
  7.  
  8. # email notifier for all builds only to admin
  9. all_mail_notifier = reporters.MailNotifier(
  10. fromaddr=from_addr,
  11. sendToInterestedUsers=False,
  12. mode='all',
  13. extraRecipients=['ampz9@company.com'],
  14. relayhost=smtp_host, smtpPort=25, smtpUser="",
  15. smtpPassword="")
  16.  
  17. # email notifier for failures to the team
  18. failure_mail_notifier = reporters.MailNotifier(
  19. fromaddr=from_addr,
  20. sendToInterestedUsers=False, mode=('failing', 'problem', 'exception'),
  21. extraRecipients=[
  22. 'ampz9@company.com',
  23. 'ampz10@company.com',
  24. 'ampz11@company.com'
  25. ],
  26. relayhost=smtp_host, smtpPort=25, smtpUser="",
  27. smtpPassword="")
  28.  
  29. c['services'].append(all_mail_notifier)
  30. c['services'].append(failure_mail_notifier)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement