2008-11-27 00:38:09 +00:00
[% WRAPPER layout.tt title="Build Information" %]
2008-11-17 23:59:20 +00:00
[% PROCESS common.tt %]
2008-11-27 18:27:19 +00:00
[% PROCESS "product-list.tt" %]
2008-11-18 14:48:40 +00:00
[% USE HTML %]
2008-10-28 10:19:31 +00:00
2008-11-11 12:54:37 +00:00
<h1>
Job <tt>[% build.project.name %]:[% build.attrname %]</tt> build [% id %]
[% IF !build.finished %]
2008-11-11 14:45:33 +00:00
[% IF build.schedulingInfo.busy %]
(currently building)
[% ELSE %]
(scheduled)
[% END %]
2008-11-11 12:54:37 +00:00
[% END %]
</h1>
2008-10-28 10:19:31 +00:00
2008-11-05 06:23:41 +00:00
2008-10-28 10:19:31 +00:00
<h2>Information</h2>
2008-11-26 19:48:04 +00:00
<table class="layoutTable">
2008-10-28 10:19:31 +00:00
<tr>
<th>Build ID:</th>
<td>[% build.id %]</td>
</tr>
2008-11-11 12:54:37 +00:00
<tr>
<th>Time added:</th>
2008-11-25 13:27:57 +00:00
<td>[% PROCESS renderDateTime timestamp = build.timestamp %]</td>
2008-11-11 12:54:37 +00:00
</tr>
2008-11-11 14:45:33 +00:00
<tr>
<th>Status:</th>
<td>
[% IF build.finished %]
[% IF build.resultInfo.buildstatus == 0 %]
<img src="/static/images/success.gif" />
<strong>Success</strong>
[% ELSIF build.resultInfo.buildstatus == 1 %]
<img src="/static/images/failure.gif" />
2008-11-25 00:38:16 +00:00
<span class="error">Build returned a non-zero exit code</span>
[% ELSIF build.resultInfo.buildstatus == 2 %]
<img src="/static/images/failure.gif" />
<span class="error">A dependency of the build failed</span>
2008-11-11 14:45:33 +00:00
[% ELSE %]
<img src="/static/images/failure.gif" />
2008-11-25 00:38:16 +00:00
<span class="error">Build failed</span>
(see <a href="#nix-error">below</a>)
2008-11-11 14:45:33 +00:00
[% END %]
[% ELSIF build.schedulingInfo.busy %]
<strong>Build in progress</strong>
2008-11-27 02:29:46 +00:00
since [% PROCESS renderDateTime timestamp = build.schedulingInfo.starttime %]
2008-11-11 14:45:33 +00:00
[% ELSE %]
<strong>Scheduled to be built</strong>
[% END %]
</td>
</tr>
2008-11-05 03:25:48 +00:00
<tr>
<th>Project:</th>
2008-11-10 10:18:50 +00:00
<td><a href="[% c.uri_for('/project' build.project.name) %]"><tt>[% build.project.name %]</tt></a></td>
2008-11-05 03:25:48 +00:00
</tr>
<tr>
<th>Jobset:</th>
2008-11-10 10:18:50 +00:00
<td><tt>[% build.jobset.name %]</tt></td>
2008-11-05 03:25:48 +00:00
</tr>
2008-10-28 10:19:31 +00:00
<tr>
<th>Job name:</th>
2008-11-12 16:42:07 +00:00
<td><a href="[% c.uri_for('/job' build.project.name build.attrname) %]"><tt>[% build.attrname %]</tt></a></td>
</tr>
<tr>
<th>Nix name:</th>
<td><tt>[% build.nixname %]</tt></td>
2008-10-28 10:19:31 +00:00
</tr>
<tr>
2008-12-16 15:09:39 +00:00
<th>Short description:</th>
<td>[% IF build.description %][% HTML.escape(build.description) %][% ELSE %]<em>(not given)</em>[% END %]</td>
</tr>
<tr>
<th>Long description:</th>
<td>[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %]<em>(not given)</em>[% END %]</td>
</tr>
<tr>
<th>License:</th>
<td>[% IF build.license %][% HTML.escape(build.license) %][% ELSE %]<em>(not given)</em>[% END %]</td>
2008-10-28 10:19:31 +00:00
</tr>
<tr>
2008-11-11 12:54:37 +00:00
<th>System:</th>
<td><tt>[% build.system %]</tt></td>
2008-10-28 10:19:31 +00:00
</tr>
2008-11-11 12:54:37 +00:00
<tr>
<th>Derivation store path:</th>
2009-02-27 15:31:49 +00:00
<td>
<tt>[% build.drvpath %]</tt>
[% IF drvAvailable %]
(<a href="[% c.uri_for('/build' build.id 'buildtime-deps') %]">build-time dependencies</a>)
[% END %]
</td>
2008-11-11 12:54:37 +00:00
</tr>
<tr>
<th>Output store path:</th>
2009-02-27 15:31:49 +00:00
<td>
<tt>[% build.outpath %]</tt>
[% IF available %]
(<a href="[% c.uri_for('/build' build.id 'runtime-deps') %]">runtime dependencies</a>)
[% END %]
</td>
2008-11-11 12:54:37 +00:00
</tr>
[% IF build.finished %]
2008-11-06 14:32:30 +00:00
<tr>
<th>Build started:</th>
2008-11-25 13:27:57 +00:00
<td>[% IF build.resultInfo.starttime %][% PROCESS renderDateTime timestamp = build.resultInfo.starttime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
2008-11-06 14:32:30 +00:00
</tr>
<tr>
<th>Build finished:</th>
2008-11-25 13:27:57 +00:00
<td>[% IF build.resultInfo.stoptime %][% PROCESS renderDateTime timestamp = build.resultInfo.stoptime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
2008-11-06 14:32:30 +00:00
</tr>
2008-10-28 17:08:29 +00:00
<tr>
<th>Duration (seconds):</th>
<td>
2008-11-11 12:54:37 +00:00
[% IF build.resultInfo.iscachedbuild %]
2008-10-28 17:08:29 +00:00
<em>(cached build)</em>
[% ELSE %]
2008-11-11 12:54:37 +00:00
[% build.resultInfo.stoptime - build.resultInfo.starttime %]
2008-10-28 17:08:29 +00:00
[% END %]
</td>
</tr>
2008-11-25 16:13:22 +00:00
[% IF build.resultInfo.releasename %]
<tr>
<th>Release name:</th>
<td><tt>[% HTML.escape(build.resultInfo.releasename) %]</tt></td>
</tr>
[% END %]
2008-11-25 00:38:16 +00:00
[% IF build.resultInfo.logfile %]
<tr>
<th>Logfile:</th>
<td>
2009-02-25 12:03:13 +00:00
<a href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a>
2008-11-25 00:38:16 +00:00
</td>
</tr>
[% END %]
2008-11-11 12:54:37 +00:00
[% ELSE %]
<tr>
<th>Priority:</th>
<td>[% build.schedulingInfo.priority %]</td>
</tr>
2008-11-11 14:45:33 +00:00
[% IF build.schedulingInfo.busy %]
<tr>
<th>Logfile:</th>
2008-11-12 16:42:07 +00:00
<td><tt>[% build.schedulingInfo.logfile %]</tt></td>
2008-11-11 14:45:33 +00:00
</tr>
[% END %]
2008-11-11 12:54:37 +00:00
[% END %]
2008-10-28 10:19:31 +00:00
</table>
2008-11-05 06:23:41 +00:00
<h2>Build inputs</h2>
<table class="tablesorter">
<thead>
2008-11-25 14:59:08 +00:00
<tr><th>Name</th><th>Type</th><th>Value</th><th>Revision</th><th>Store path</th></tr>
2008-11-05 06:23:41 +00:00
</thead>
<tbody>
2008-11-09 00:48:36 +00:00
[% FOREACH input IN build.inputs -%]
2008-11-05 06:23:41 +00:00
<tr>
2008-11-05 23:08:16 +00:00
<td><tt>[% input.name %]</tt></td>
2008-11-17 23:59:20 +00:00
<td><tt>[% type = input.type; inputTypes.$type %]</tt></td>
2008-11-05 23:08:16 +00:00
<td>
[% IF input.type == "build" %]
2008-11-10 10:18:50 +00:00
<a href="[% c.uri_for('/build' input.dependency.id) %]">Job <tt>[% input.dependency.project.name %]:[% input.dependency.attrname %]</tt> build [% input.dependency.id %]</a>
2008-11-25 18:34:24 +00:00
[% ELSIF input.type == "string" || input.type == "boolean" %]
2008-11-06 18:28:34 +00:00
<tt>"[% input.value %]"</tt>
2008-11-05 23:08:16 +00:00
[% ELSE %]
<tt>[% input.uri %]</tt>
[% END %]
</td>
2008-11-25 14:59:08 +00:00
<td>[% IF input.revision %][% input.revision %][% END %]</td>
2008-11-05 23:08:16 +00:00
<td><tt>[% input.path %]</tt></td>
2008-11-05 06:23:41 +00:00
</tr>
[% END -%]
</tbody>
</table>
2008-11-11 17:49:50 +00:00
[% IF build.buildsteps %]
2008-11-25 00:38:16 +00:00
<h2 id="buildsteps">Build steps</h2>
2008-11-11 17:49:50 +00:00
<table class="tablesorter">
<thead>
2008-11-12 11:09:21 +00:00
<tr><th>Nr</th><th>What</th><th>Duration</th><th>Status</th></tr>
2008-11-11 17:49:50 +00:00
</thead>
<tbody>
[% FOREACH step IN build.buildsteps -%]
2009-02-25 12:03:13 +00:00
[% log = c.uri_for('/build' build.id 'nixlog' step.stepnr) %]
2008-11-27 10:04:54 +00:00
<tr class="[% IF step.logfile %]clickable[% END %]"
2009-02-25 10:52:41 +00:00
[% IF step.logfile %] onclick="window.location = '[% log %]'" [% END %]>
2008-11-11 17:49:50 +00:00
<td>[% step.stepnr %]</td>
<td>
2008-11-12 13:00:56 +00:00
[% IF step.type == 0 %]
Build of <tt>[% step.outpath %]</tt>
[% ELSE %]
Substitution of <tt>[% step.outpath %]</tt>
[% END %]
2008-11-11 17:49:50 +00:00
</td>
2008-11-12 11:09:21 +00:00
<td>
[% IF step.busy == 0 %]
[% step.stoptime - step.starttime %]s
[% ELSE %]
2008-11-25 00:38:16 +00:00
[% IF build.finished %]
[% build.resultInfo.stoptime - step.starttime %]s
[% ELSE %]
[% curTime - step.starttime %]s
[% END %]
2008-11-12 11:09:21 +00:00
[% END %]
</td>
2008-11-11 17:49:50 +00:00
<td>
[% IF step.busy == 1 %]
2008-11-25 00:38:16 +00:00
[% IF build.finished %]
<span class="error">Aborted</span>
[% ELSE %]
<strong>Building</strong>
[% END %]
2008-11-11 17:49:50 +00:00
[% ELSIF step.status == 0 %]
Succeeded
[% ELSE %]
2008-11-25 00:38:16 +00:00
<span class="error">Failed: [% HTML.escape(step.errormsg) %]</span>
2008-11-11 17:49:50 +00:00
[% END %]
2008-11-12 13:00:56 +00:00
[% IF step.logfile %]
2009-02-25 10:52:41 +00:00
(<a href="[% log %]">log</a>)
2008-11-12 13:00:56 +00:00
[% END %]
2008-11-11 17:49:50 +00:00
</td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
2008-11-11 12:54:37 +00:00
[% IF build.finished %]
2008-11-11 14:45:33 +00:00
2008-11-25 00:38:16 +00:00
[% IF build.resultInfo.errormsg %]
<h2 id="nix-error">Nix error output</h2>
<pre class="buildlog">
[% HTML.escape(build.resultInfo.errormsg) -%]
</pre>
[% END %]
2008-11-11 14:45:33 +00:00
[% IF build.buildproducts %]
2008-10-28 10:19:31 +00:00
<h2>Build products</h2>
2009-01-13 14:02:07 +00:00
[% IF !available %]
<p class="error">Note: this build is no longer available.</p>
[% END %]
2008-11-27 18:27:19 +00:00
[% PROCESS renderProductList %]
2008-11-17 13:36:58 +00:00
2008-11-11 14:45:33 +00:00
[% END %]
2008-10-28 10:19:31 +00:00
2008-11-09 00:48:36 +00:00
[% IF build.dependents %]
2008-11-06 13:40:31 +00:00
<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>
2008-11-09 00:48:36 +00:00
[% FOREACH input IN build.dependents -%]
2008-11-06 13:40:31 +00:00
<tr>
2008-11-10 10:18:50 +00:00
<td><a href="[% c.uri_for('/build' input.build.id) %]">Job <tt>[% input.build.project.name %]:[% input.build.attrname %]</tt> build [% input.build.id %]</a></td>
2008-11-06 13:40:31 +00:00
<td><tt>[% input.name %]</tt></td>
2008-11-09 00:48:36 +00:00
<td><tt>[% input.build.system %]</tt></td>
2008-11-25 13:27:57 +00:00
<td>[% PROCESS renderDateTime timestamp = input.build.timestamp %]</td>
2008-11-06 13:40:31 +00:00
</tr>
[% END -%]
</tbody>
</table>
[% END %]
2008-11-11 14:45:33 +00:00
[% ELSIF build.schedulingInfo.busy %]
<h2>Log</h2>
<pre class="buildlog">
2008-11-25 00:38:16 +00:00
[% HTML.escape(logtext) -%]
2008-11-11 14:45:33 +00:00
</pre>
2008-10-28 10:19:31 +00:00
[% END %]
2008-11-11 12:54:37 +00:00
[% END %]