forked from lix-project/hydra
* hdyra: show last succeeded build and changes since on build status summary if build has failed
This commit is contained in:
parent
529a6cf6eb
commit
3ff2934400
|
@ -180,10 +180,19 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF build.finished %]
|
[% IF build.finished %]
|
||||||
[% IF build.buildsteps && (build.resultInfo.buildstatus == 2 || build.resultInfo.buildstatus == 5)%]
|
[% IF build.buildsteps && build.resultInfo.buildstatus != 0 %]
|
||||||
[% INCLUDE renderBuildSteps type="Failed" %]
|
[% INCLUDE renderBuildSteps type="Failed" %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
[% IF build.resultInfo.buildstatus != 0 && prevSuccessfulBuild %]
|
||||||
|
<h2>Changes</h2>
|
||||||
|
<p>
|
||||||
|
The previous successful build of this job was [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]. The
|
||||||
|
following changes were made since:
|
||||||
|
</p>
|
||||||
|
[% INCLUDE renderInputDiff build2=build , build1=prevSuccessfulBuild %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
|
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
|
||||||
|
|
||||||
<h2 id="nix-error">Nix error output</h2>
|
<h2 id="nix-error">Nix error output</h2>
|
||||||
|
@ -384,14 +393,11 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
[% IF prevBuild %]
|
<p/>
|
||||||
<h2>Changes since previous build : [% INCLUDE renderFullBuildLink build=prevBuild %]</h2>
|
|
||||||
[% INCLUDE renderInputDiff build2=build , build1=prevBuild %]
|
|
||||||
[% END %]
|
|
||||||
|
|
||||||
[% IF prevBuild && prevSuccessfulBuild.id != prevBuild.id %]
|
[% IF prevBuild %]
|
||||||
<h2>Changes since previous successful build : [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]</h2>
|
<h3>Changes since previous build : [% INCLUDE renderFullBuildLink build=prevBuild %]</h3>
|
||||||
[% INCLUDE renderInputDiff build2=build , build1=prevSuccessfulBuild %]
|
[% INCLUDE renderInputDiff build2=build , build1=prevBuild %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
[% END -%]
|
[% END -%]
|
||||||
|
|
||||||
[% BLOCK renderFullBuildLink; %]
|
[% BLOCK renderFullBuildLink; %]
|
||||||
Job [% INCLUDE renderFullJobNameOfBuild build=build %] <a href="[% c.uri_for('/build' build.id) %]">build [% build.id %]
|
[% INCLUDE renderFullJobNameOfBuild build=build %] <a href="[% c.uri_for('/build' build.id) %]">build [% build.id %]</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% BLOCK renderBuildStatusIcon; %]
|
[% BLOCK renderBuildStatusIcon; %]
|
||||||
|
|
Loading…
Reference in a new issue