From 7bbd736d96b9fa6e2c2e2237cb3372ca8c7635e0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Nov 2008 14:32:30 +0000 Subject: [PATCH] --- src/HydraFrontend/root/build.tt | 18 ++++++++++++++++++ src/scheduler.pl | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) 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) {