Overview
The Alerts Package provides email alerting to changes made during a build. For example if the unit test count changes an email will be sent out.
Configuration
There is no required configuration. The Alerts Package works straight out of the box. It does depend on the email configuration section in the file ccnetproject.xml.
<!ENTITY email '<email from="
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
" mailhost="localhost" includeDetails="true" dashboardServerName="BuildAutomation">
<users>
<user name="BuildMaster" group="buildmaster" address="
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
"/>
<user name="bill" group="developer" address="
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
"/>
</users>
<groups>
<group name="buildmaster" notification="change"/>
</groups>
</email>'>
The it is important to remember that the developers should not be a part of a real group. As well the developer names must match their source control account names.
There are two options to configure in this package. There is a CCList and what alerts to turn on or off. The CCList default value is blank. When emails are sent for any alert those in the CCList will receive them. This is a semicolon separated list.
Out of the box alerts for unit test count change are on. Alerts for Tracker note existence are turned off. To turn them simply uncomment the tracker related lines in the properties file.
Extension
It should be easy to add more alerts to this package. Please review the existing alert scripts for working examples. A possible extension would be to check the compiler options in VS project files.
Misc
Please see the Screen Shots web page for example emails of the unit test count alerts.
|