From bfa7804f50d8d9057a0a20f8f7d70791e8c9d27a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 11 Feb 2010 10:18:57 +0000 Subject: [PATCH] * hydra: show running buildsteps on build page --- src/root/build.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 3cd81aad..fe0986d5 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -10,14 +10,14 @@ [% BLOCK renderBuildSteps %] -

[% IF onlyFailed == 1 %]Failed build steps[% ELSE %]Build steps[% END%]

+

[% type %] build steps

[% FOREACH step IN build.buildsteps -%] - [% IF (onlyFailed != 1) || (step.status != 0) -%] + [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) -%] [% log = c.uri_for('/build' build.id 'nixlog' step.stepnr) %] @@ -175,11 +175,13 @@ [% END %] - + [% IF !build.finished %] + [% INCLUDE renderBuildSteps type="Running" %] + [% END %] [% IF build.finished %] [% IF build.buildsteps && (build.resultInfo.buildstatus == 2 || build.resultInfo.buildstatus == 5)%] - [% INCLUDE renderBuildSteps onlyFailed=1 %] + [% INCLUDE renderBuildSteps type="Failed" %] [% END %] [% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %] @@ -386,7 +388,7 @@ [% IF build.buildsteps %]
- [% INCLUDE renderBuildSteps onlyFailed=0 %] + [% INCLUDE renderBuildSteps type="All" %]
[% END %]
NrWhatDurationStatus