Skip to content

Commit

Permalink
only send build failure emails on official servers
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoolleyman committed Jul 19, 2009
1 parent 485dccb commit 88f5015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cruise_config.rb
@@ -1,5 +1,6 @@
# Project-specific configuration for CruiseControl.rb
require 'fileutils'
require 'socket'

Project.configure do |project|
triggers = []
Expand All @@ -10,7 +11,7 @@
triggers << :dummyrepo
end
project.triggered_by *triggers
project.email_notifier.emails = ['thewoolleyman@gmail.com']
project.email_notifier.emails = ['thewoolleyman@gmail.com'] if Socket.gethostname =~ /(thewoolleyweb.com|ci.pivotallabs.com)/
if project.name =~ /rubygems[_-](.*)$/ # geminstaller_using_rubygems_0-9-4
rubygems_version = $1
rubygems_version.gsub!('-','.')
Expand Down

0 comments on commit 88f5015

Please sign in to comment.