1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/buildserver/rbmaster.pl b/buildserver/rbmaster.pl
index be4092e..2c932bb 100644
--- a/buildserver/rbmaster.pl
+++ b/buildserver/rbmaster.pl
@@ -916,6 +916,27 @@ sub endround {
             slog "roundend took $rbtook seconds";
         }
     }
+
+    # pass round result to clients
+    chdir "/sites/rockbox.org/trunk";
+    my $author = `git log -1 "--format=format:%an" $buildround`;
+    chomp $author;
+
+    my $sth = $db->prepare("SELECT sum(errors), sum(warnings) FROM builds WHERE revision='$buildround'") or
+        warn "DBI: Can't prepare statement: ". $db->errstr;
+
+    my $rows = $sth->execute();
+
+    if ($rows) {
+        my ($errors,$warnings) = $sth->fetchrow_array();
+        if ($errors or $warnings) {
+            message sprintf "Revision $buildround result: $errors errors, $warnings warnings ($author committed)";
+        }
+        else {
+            message sprintf "Revision $buildround result: All green";
+        }
+    }
+
     $buildround=0;
 
     # recalculate speed values for all clients