OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 from buildbot.status.mail import MailNotifier |
| 6 |
5 from master import master_utils | 7 from master import master_utils |
6 from master import slaves_list | 8 from master import slaves_list |
7 | 9 |
8 import config | 10 import config |
9 import master_site_config | 11 import master_site_config |
10 | 12 |
11 ActiveMaster = master_site_config.ChromiumLKGR | 13 ActiveMaster = master_site_config.ChromiumLKGR |
12 | 14 |
13 c = BuildmasterConfig = {} | 15 c = BuildmasterConfig = {} |
14 c['change_source'] = [] | 16 c['change_source'] = [] |
(...skipping 24 matching lines...) Expand all Loading... |
39 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], | 41 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], |
40 config.Master.GetBotPassword()) | 42 config.Master.GetBotPassword()) |
41 master_utils.VerifySetup(c, slaves) | 43 master_utils.VerifySetup(c, slaves) |
42 | 44 |
43 # Adds common status and tools to this master. | 45 # Adds common status and tools to this master. |
44 master_utils.AutoSetupMaster(c, ActiveMaster, | 46 master_utils.AutoSetupMaster(c, ActiveMaster, |
45 public_html='../master.chromium/public_html', | 47 public_html='../master.chromium/public_html', |
46 templates=['../master.chromium/templates'], | 48 templates=['../master.chromium/templates'], |
47 tagComparator=c['change_source'][0].comparator, | 49 tagComparator=c['change_source'][0].comparator, |
48 enable_http_status_push=ActiveMaster.is_production_host) | 50 enable_http_status_push=ActiveMaster.is_production_host) |
| 51 |
| 52 c['status'].append(MailNotifier( |
| 53 fromaddr=ActiveMaster.from_address, |
| 54 mode='problem', |
| 55 relayhost=config.Master.smtp, |
| 56 subject='LKGR build failure on %(builder)s', |
| 57 extraRecipients=['chrome-security-sheriff@grotations.appspotmail.com'], |
| 58 sendToInterestedUsers=False)) |
OLD | NEW |