diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 0ab0832e..09018b5d 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -108,6 +108,10 @@ sub build_GET { # If this is an aggregate build, get its constituents. $c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})]; + + $c->stash->{isChannel} = $c->stash->{build}->buildproducts->search( + {type => "channel"} + )->count > 0; } diff --git a/src/root/build.tt b/src/root/build.tt index ec1fe10a..288af542 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -188,7 +188,7 @@ [% IF cachedBuild; INCLUDE renderFullBuildLink build=cachedBuild; ELSE %]unknown[% END %] [% END %] - [% IF !isAggregate && build.finished; actualBuild = build.iscachedbuild ? cachedBuild : build %] + [% IF (!isAggregate || !isChannel) && build.finished; actualBuild = build.iscachedbuild ? cachedBuild : build %] [% IF actualBuild %] Duration: @@ -200,7 +200,7 @@ [% INCLUDE renderDateTime timestamp = build.stoptime; %] [% END %] - [% IF !isAggregate && buildLogExists(build) %] + [% IF (!isAggregate || !isChannel) && buildLogExists(build) %] Logfile: @@ -215,7 +215,7 @@ - [% IF build.buildproducts && !isAggregate %] + [% IF isChannel || (build.buildproducts && !isAggregate) %]

Build products