aboutsummaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
Diffstat (limited to 'monitor')
-rwxr-xr-xmonitor/bot-status14
1 files changed, 9 insertions, 5 deletions
diff --git a/monitor/bot-status b/monitor/bot-status
index f2de0ea..4a794f2 100755
--- a/monitor/bot-status
+++ b/monitor/bot-status
@@ -98,13 +98,17 @@ foreach my $server (@$config) {
print $temp " <td><font color='green'>PASS</font></td>\n".
" <td>&nbsp;</td>\n";
}
- if (defined $status->{'build'} and
- defined $status->{'from'} and
+ if (defined $status->{'build'}) {
+ my $build_url = $url."/builds/".$status->{'build'};
+ print $temp " <td><a href='$build_url'>$status->{'build'}</a></td>\n";
+ } else {
+ print $temp " <td>&nbsp;</td>\n";
+ }
+ if (defined $status->{'from'} and
defined $status->{'to'}) {
- print $temp " <td>$status->{'build'}</td>\n".
- " <td>$status->{'from'}-$status->{'to'}</td>\n";
+ print $temp " <td>$status->{'from'}-$status->{'to'}</td>\n";
} else {
- print $temp " <td colspan=2>&nbsp;</td>\n";
+ print $temp " <td>&nbsp;</td>\n";
}
print $temp "</tr>\n";
}