hydra/src/HydraFrontend/root/build.tt

159 lines
3.5 KiB
Plaintext
Raw Normal View History

[% WRAPPER layout.tt title="Hydra Overview" %]
[% USE date %]
<h1>Job <tt>[% build.project %]:[% build.attrname %]</tt> build [% id %]</h1>
<h2>Information</h2>
<table>
<tr>
<th>Build ID:</th>
<td>[% build.id %]</td>
</tr>
2008-11-05 03:25:48 +00:00
<tr>
<th>Project:</th>
<td><tt>[% build.project %]</tt></td>
</tr>
<tr>
<th>Jobset:</th>
<td><tt>[% build.jobset %]</tt></td>
</tr>
<tr>
<th>Job name:</th>
2008-11-05 03:25:48 +00:00
<td><tt>[% build.attrname %]</tt></td>
</tr>
<tr>
<th>Description:</th>
<td>[% build.description %]</td>
</tr>
<tr>
<th>Time added:</th>
<td>[% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
2008-11-06 14:32:30 +00:00
<tr>
<th>Build started:</th>
<td>[% date.format(build.starttime, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
<tr>
<th>Build finished:</th>
<td>[% date.format(build.stoptime, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
<tr>
<th>Duration (seconds):</th>
<td>
[% IF build.iscachedbuild %]
<em>(cached build)</em>
[% ELSE %]
[% build.stoptime - build.starttime %]
[% END %]
</td>
</tr>
<tr>
<th>Derivation store path:</th>
<td><tt>[% build.drvpath %]</tt></td>
</tr>
<tr>
<th>Output store path:</th>
<td><tt>[% build.outpath %]</tt></td>
</tr>
2008-11-06 18:26:29 +00:00
<tr>
<th>System:</th>
<td><tt>[% build.system %]</tt></td>
2008-11-06 18:28:34 +00:00
</tr>
2008-11-06 14:32:30 +00:00
<tr>
<th>Status:</th>
<td>
[% IF build.buildstatus == 0 %]
<img src="/static/images/success.gif" />
[% ELSE %]
<img src="/static/images/failure.gif" />
[% END %]
</td>
</tr>
</table>
<h2>Build inputs</h2>
<table class="tablesorter">
<thead>
<tr><th>Name</th><th>Type</th><th>What</th><th>Store path</th></tr>
</thead>
<tbody>
[% FOREACH input IN build.buildinputs -%]
<tr>
<td><tt>[% input.name %]</tt></td>
<td><tt>[% input.type %]</tt></td>
<td>
[% IF input.type == "build" %]
2008-11-05 23:37:23 +00:00
<a href="[% c.uri_for('/build' input.inputid) %]">Job <tt>[% input.build.project %]:[% input.build.attrname %]</tt> build [% input.inputid %]</a>
2008-11-06 18:26:29 +00:00
[% ELSIF input.type == "string" %]
2008-11-06 18:28:34 +00:00
<tt>"[% input.value %]"</tt>
[% ELSE %]
<tt>[% input.uri %]</tt>
[% END %]
</td>
<td><tt>[% input.path %]</tt></td>
</tr>
[% END -%]
</tbody>
</table>
<h2>Build products</h2>
<ul>
[% FOREACH product IN build.buildproducts -%]
<li>
[% SWITCH product.type %]
[% CASE "nix-build" %]
Nix build of path <tt>[% product.path %]</tt>
[% END %]
</li>
[% END -%]
</ul>
<h2>Logs</h2>
<table>
<tr><th>Phase</th></tr>
[% FOREACH log IN build.buildlogs -%]
<tr>
<td><a href="[% c.uri_for('/log' build.id log.logphase) %]">[% log.logphase %]</a></td>
</tr>
[% END -%]
</table>
2008-11-06 13:40:31 +00:00
[% IF build.dependentBuildInputs %]
<h2>Used by</h2>
<p>The following builds have used this build as an input:</p>
<table class="tablesorter">
<thead>
2008-11-06 18:26:29 +00:00
<tr><th>Build</th><th>Input name</th><th>System</th><th>Timestamp</th></tr>
2008-11-06 13:40:31 +00:00
</thead>
<tbody>
[% FOREACH input IN build.dependentBuildInputs -%]
<tr>
<td><a href="[% c.uri_for('/build' input.buildid.id) %]">Job <tt>[% input.buildid.project %]:[% input.buildid.attrname %]</tt> build [% input.buildid.id %]</a></td>
<td><tt>[% input.name %]</tt></td>
2008-11-06 18:26:29 +00:00
<td><tt>[% input.buildid.system %]</tt></td>
2008-11-06 13:40:31 +00:00
<td>[% date.format(input.buildid.timestamp, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
[% END -%]
</tbody>
</table>
[% END %]
[% END %]