[monitor] Add direct link to builds
Adding a direct link to the buil on the build number, to avoid having
to click on the bot page *then* the link. With the buildmaster *that* slow,
this saves several seconds per lookup, which sometimes can be several dozens
every day.
Change-Id: If8cd783990042d9c51c318152b35d5b317cb5bf6
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 @@
print $temp " <td><font color='green'>PASS</font></td>\n".
" <td> </td>\n";
}
- if (defined $status->{'build'} and
- defined $status->{'from'} and
- defined $status->{'to'}) {
- print $temp " <td>$status->{'build'}</td>\n".
- " <td>$status->{'from'}-$status->{'to'}</td>\n";
+ 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 colspan=2> </td>\n";
+ print $temp " <td> </td>\n";
+ }
+ if (defined $status->{'from'} and
+ defined $status->{'to'}) {
+ print $temp " <td>$status->{'from'}-$status->{'to'}</td>\n";
+ } else {
+ print $temp " <td> </td>\n";
}
print $temp "</tr>\n";
}