forked from lix-project/hydra
make changes section more compact/readable
This commit is contained in:
parent
7e69512701
commit
88dc824479
|
@ -184,25 +184,25 @@
|
||||||
[% INCLUDE renderBuildSteps type="Failed" %]
|
[% INCLUDE renderBuildSteps type="Failed" %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
|
|
||||||
<h2>Changes</h2>
|
|
||||||
<p>
|
|
||||||
Build [% INCLUDE renderFullBuildLink build=firstBrokenBuild %] is the first build failure after the previous successful build of this job. The changes that might have caused the failure are:
|
|
||||||
</p>
|
|
||||||
[% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=firstBrokenBuild %]
|
|
||||||
<br />
|
|
||||||
<p/>
|
|
||||||
[% END %]
|
|
||||||
|
|
||||||
[% IF build.resultInfo.buildstatus != 0 && prevSuccessfulBuild %]
|
[% IF build.resultInfo.buildstatus != 0 && prevSuccessfulBuild %]
|
||||||
<h2>Changes</h2>
|
<h2>Changes</h2>
|
||||||
<p>
|
<table>
|
||||||
The previous successful build of this job was [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]. The
|
<thead>
|
||||||
following changes were made since:
|
<th>Last successful build</th>
|
||||||
</p>
|
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]<th>First broken build</th>[% END %]
|
||||||
[% INCLUDE renderInputDiff build2=build , build1=prevSuccessfulBuild %]
|
<th>Current build</th>
|
||||||
<br />
|
</thead>
|
||||||
<p/>
|
<tr>
|
||||||
|
<td valign="center">[% INCLUDE renderBuildStatusIcon build=prevSuccessfulBuild size=32 %] [% INCLUDE renderFullBuildLink build=prevSuccessfulBuild %]</td>
|
||||||
|
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]<td valign="center">[% INCLUDE renderBuildStatusIcon build=firstBrokenBuild size=32 %] [% INCLUDE renderFullBuildLink build=firstBrokenBuild %]</td>[% END %]
|
||||||
|
<td>[% INCLUDE renderBuildStatusIcon build=build size=32 %] [% INCLUDE renderFullBuildLink build=build %]</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]<td>[% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=firstBrokenBuild %]</td>[% END %]
|
||||||
|
<td>[% INCLUDE renderInputDiff build1=prevSuccessfulBuild , build2=build %]</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
|
[% IF build.resultInfo.errormsg && build.resultInfo.buildstatus != 5 %]
|
||||||
|
|
|
@ -284,6 +284,16 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
[% BLOCK renderShortInputValue %]
|
||||||
|
[% IF input.type == "build" || input.type == "sysbuild" %]
|
||||||
|
<a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a>
|
||||||
|
[% ELSIF input.type == "string" || input.type == "boolean" %]
|
||||||
|
<tt>"[% input.value %]"</tt>
|
||||||
|
[% ELSE %]
|
||||||
|
<tt>[% input.uri %][% IF input.revision %] (r. [% input.revision %])[% END %]</tt>
|
||||||
|
[% END %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
[% BLOCK renderDiffUri; %]
|
[% BLOCK renderDiffUri; %]
|
||||||
[% nouri = 1 %]
|
[% nouri = 1 %]
|
||||||
[% FOREACH m IN mappers %]
|
[% FOREACH m IN mappers %]
|
||||||
|
@ -311,14 +321,20 @@
|
||||||
[% IF bi1.name == bi2.name %]
|
[% IF bi1.name == bi2.name %]
|
||||||
[% IF bi1.type == bi2.type %]
|
[% IF bi1.type == bi2.type %]
|
||||||
[% IF bi1.value != bi2.value || bi1.uri != bi2.uri %]
|
[% IF bi1.value != bi2.value || bi1.uri != bi2.uri %]
|
||||||
<tr><td><b>[% bi1.name %]</b></td><td>[% INCLUDE renderInputValue input=bi1 %] to [% INCLUDE renderInputValue input=bi2 %]</td></tr>
|
<tr><td><b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderShortInputValue input=bi1 %] to [% INCLUDE renderShortInputValue input=bi2 %]</tt></td></tr>
|
||||||
[% ELSIF bi1.uri == bi2.uri && bi1.revision != bi2.revision %]
|
[% ELSIF bi1.uri == bi2.uri && bi1.revision != bi2.revision %]
|
||||||
|
[% IF bi1.type == "git" %]
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderDiffUri contents=('Revision changed from ' _ bi1.revision _ ' to ' _ bi2.revision) %]</tt>
|
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderDiffUri contents=(bi1.revision.substr(0, 6) _ ' to ' _ bi2.revision.substr(0, 6)) %]</tt>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
[% ELSE %]
|
||||||
|
<tr><td>
|
||||||
|
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderDiffUri contents=(bi1.revision _ ' to ' _ bi2.revision) %]</tt>
|
||||||
|
</td></tr>
|
||||||
|
[% END %]
|
||||||
[% ELSIF bi1.dependency.id != bi2.dependency.id || bi1.path != bi2.path %]
|
[% ELSIF bi1.dependency.id != bi2.dependency.id || bi1.path != bi2.path %]
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<b>[% bi1.name %]</b></td><td>[% INCLUDE renderInputValue input=bi1 %] to [% INCLUDE renderInputValue input=bi2 %]
|
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderShortInputValue input=bi1 %] to [% INCLUDE renderShortInputValue input=bi2 %]</tt>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
[% INCLUDE renderInputDiff build1=bi1.dependency, build2=bi2.dependency, nestedDiff=1 %]
|
[% INCLUDE renderInputDiff build1=bi1.dependency, build2=bi2.dependency, nestedDiff=1 %]
|
||||||
|
@ -358,4 +374,10 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% BLOCK buildsGraph %]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
Loading…
Reference in a new issue