diff --git a/src/HydraFrontend/root/build.tt b/src/HydraFrontend/root/build.tt
index 40718ab9..557e0f87 100644
--- a/src/HydraFrontend/root/build.tt
+++ b/src/HydraFrontend/root/build.tt
@@ -31,6 +31,14 @@
Time added: |
[% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %] |
+
+ Build started: |
+ [% date.format(build.starttime, '%Y-%m-%d %H:%M:%S') %] |
+
+
+ Build finished: |
+ [% date.format(build.stoptime, '%Y-%m-%d %H:%M:%S') %] |
+
Duration (seconds): |
@@ -49,6 +57,16 @@
| Output store path: |
[% build.outpath %] |
+
+ Status: |
+
+ [% IF build.buildstatus == 0 %]
+
+ [% ELSE %]
+
+ [% END %]
+ |
+
diff --git a/src/scheduler.pl b/src/scheduler.pl
index 9a8129a1..da8843ff 100644
--- a/src/scheduler.pl
+++ b/src/scheduler.pl
@@ -193,7 +193,7 @@ sub checkJobSet {
else {
(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});
if (defined $prevBuild) {