This commit is contained in:
Eelco Dolstra 2008-11-06 14:32:30 +00:00
parent b0bbb1a011
commit 7bbd736d96
2 changed files with 19 additions and 1 deletions

View file

@ -31,6 +31,14 @@
<th>Time added:</th> <th>Time added:</th>
<td>[% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %]</td> <td>[% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %]</td>
</tr> </tr>
<tr>
<th>Build started:</th>
<td>[% date.format(build.starttime, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
<tr>
<th>Build finished:</th>
<td>[% date.format(build.stoptime, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
<tr> <tr>
<th>Duration (seconds):</th> <th>Duration (seconds):</th>
<td> <td>
@ -49,6 +57,16 @@
<th>Output store path:</th> <th>Output store path:</th>
<td><tt>[% build.outpath %]</tt></td> <td><tt>[% build.outpath %]</tt></td>
</tr> </tr>
<tr>
<th>Status:</th>
<td>
[% IF build.buildstatus == 0 %]
<img src="/static/images/success.gif" />
[% ELSE %]
<img src="/static/images/failure.gif" />
[% END %]
</td>
</tr>
</table> </table>

View file

@ -193,7 +193,7 @@ sub checkJobSet {
else { else {
(my $prevBuild) = $db->resultset('Builds')->search( (my $prevBuild) = $db->resultset('Builds')->search(
{project => $project->name, jobset => $jobset->name, attrname => $argName}, {project => $project->name, jobset => $jobset->name, attrname => $argName, buildStatus => 0},
{order_by => "timestamp DESC", rows => 1}); {order_by => "timestamp DESC", rows => 1});
if (defined $prevBuild) { if (defined $prevBuild) {