diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 9a702ea8..8e4ea4e0 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -107,6 +107,11 @@ sub build_GET { entity => $build ); + my ($eval2) = $c->stash->{eval}->jobset->jobsetevals->search( + { hasnewbuilds => 1, id => { '<', $c->stash->{eval}->id } }, + { order_by => "id DESC", rows => 1 }); + $c->stash->{otherEval} = $eval2 if defined $eval2; + # If this is an aggregate build, get its constituents. $c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})]; } diff --git a/src/root/build.tt b/src/root/build.tt index 742e5293..6929fb28 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -224,8 +224,13 @@ [% INCLUDE renderBuildSteps type="Failed" %] [% END %] - [% IF prevSuccessfulBuild %] + [% IF otherEval %]
Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %] | @@ -250,7 +255,6 @@ [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %][% INCLUDE renderInputDiff inputs1=prevSuccessfulBuild.inputs inputs2=firstBrokenBuild.inputs %] | [% END %] -[% INCLUDE renderInputDiff inputs1=prevSuccessfulBuild.inputs inputs2=build.inputs %] |
---|