CruiseControl.rb can send email notices whenever build is broken or fixed. To make it happen, you need to tell it how to send email, and who to send it to. Do the following:
1. Configure SMTP server connection. Open [cruise data]/config/site_config.rb, read the comments in it and edit according to your situation.
2. Tell the builder, whom do you want to receive build notices:Project.configure do |project|
...
project.email_notifier.emails = ['john@doe.com', 'jane@doe.com']
...
end
You can also specify who to send the email from, either for the entire site by setting Configuration.email_from
in [cruise data]/config/site_config.rb, or on a per project basis, by placing the following line in cruise_config.rb:
Project.configure do |project|
...
project.email_notifier.from = "cruisecontrol@doe.com"
...
end
The emails from CruiseControl.rb can have a lot of details about the build, or just a link to the build page in the dashboard. Usually, you will want the latter. Set the dashboard URL in the [cruise data]/config/site_config.rb as follows:
Configuration.dashboard_url = 'http://your.host.name.com:3333'