public
Description: Rubinius Buildbot
Homepage: http://code.google.com/p/rubuildius/
Clone URL: git://github.com/djwhitt/rubuildius.git
Added email support; added gitignore for files created at runtime
djwhitt (author)
Mon Mar 31 06:53:20 -0700 2008
commit  9a9599f357c0b3d52a0345822dd9db1bf66a1de0
tree    3b90868ce0074630a5567bb51d16132052c76614
parent  86dfef0d6bf8dcefc2fcce0c50d6425e1b3804c9
...
46
47
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
50
51
...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
0
@@ -46,6 +46,22 @@ module MatzBot::Commands
0
         #build.split("\n").map{|x| say " * " << x}
0
       end
0
 
0
+ build =~ /(\d*) failure/
0
+ num_failures = $1.to_i
0
+
0
+ build =~ /(\d*) error/
0
+ num_errors = $1.to_i
0
+
0
+ email_to = 'rubinius-dev@googlegroups.com'
0
+
0
+ if num_failures > 0 || num_errors > 0 || build =~ /failed/
0
+ IO.popen("/usr/sbin/sendmail -f rubuildius@spcom.org #{email_to}", "r+") do |p|
0
+ p.write("To: #{email_to}\r\n")
0
+ p.write("Subject: Rubuildius CI error/failure\r\n")
0
+ p.write("\r\n#{person}: #{hash[0..8]}; #{build}\r\n")
0
+ end
0
+ end
0
+
0
       break # only run it for the very last commit
0
     end
0
   end

Comments

    No one has commented yet.