diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-09-14 17:59:08 +0100 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-09-15 16:57:39 +0000 |
commit | 2f8ac15f73eb1c3b072b3126e3a82827c2fc07dd (patch) | |
tree | bce075b7264776f939d79373e91b0495058af4cb /monitor | |
parent | 0df000143b9e24ea3c50b4fd3bf2ccfaf181206d (diff) |
[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
Diffstat (limited to 'monitor')
-rwxr-xr-x | monitor/bot-status | 14 |
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> </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> </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> </td>\n"; + print $temp " <td> </td>\n"; } print $temp "</tr>\n"; } |