2013-02-20 14:54:33 +00:00
|
|
|
[% WRAPPER layout.tt title="Machine status" %]
|
2010-04-27 13:29:08 +00:00
|
|
|
[% PROCESS common.tt %]
|
2015-09-09 14:51:20 +00:00
|
|
|
[% USE format %]
|
2010-04-27 13:29:08 +00:00
|
|
|
|
2012-04-12 19:42:21 +00:00
|
|
|
<table class="table table-condensed table-striped">
|
2014-09-25 18:24:55 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Job</th>
|
|
|
|
<th>System</th>
|
|
|
|
<th>Build</th>
|
|
|
|
<th>Step</th>
|
|
|
|
<th>What</th>
|
|
|
|
<th>Since</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2013-02-20 15:47:57 +00:00
|
|
|
[% FOREACH m IN machines %]
|
2015-06-17 11:49:18 +00:00
|
|
|
[% name = m.key ? stripSSHUser(m.key) : "localhost" %]
|
2010-10-13 12:32:57 +00:00
|
|
|
<thead>
|
2013-02-20 15:47:57 +00:00
|
|
|
<tr>
|
2014-09-25 18:24:55 +00:00
|
|
|
<th colspan="6">
|
2016-03-16 14:23:56 +00:00
|
|
|
<tt [% IF m.value.disabled %]style="text-decoration: line-through;"[% END %]>[% INCLUDE renderMachineName machine=m.key %]</tt>
|
2013-04-23 12:24:48 +00:00
|
|
|
[% IF m.value.systemTypes %]
|
2015-09-09 14:51:20 +00:00
|
|
|
<span class="muted" style="font-weight: normal;">
|
|
|
|
([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% system %]</tt>[% END %])
|
|
|
|
</span>
|
|
|
|
[% END %]
|
|
|
|
[% IF m.value.nrStepsDone %]
|
|
|
|
<span class="muted" style="font-weight: normal;">
|
|
|
|
([% m.value.nrStepsDone %] steps done, [% f = format("%.1f"); f(m.value.avgStepBuildTime) %] s/step)
|
|
|
|
</span>
|
2013-04-23 12:24:48 +00:00
|
|
|
[% END %]
|
2013-02-20 15:47:57 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
2010-10-13 12:32:57 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2013-02-20 15:47:57 +00:00
|
|
|
[% idle = 1 %]
|
|
|
|
[% FOREACH step IN steps %]
|
2015-06-17 11:49:18 +00:00
|
|
|
[% name2 = step.machine ? stripSSHUser(step.machine) : "localhost" %]
|
2013-04-23 12:24:48 +00:00
|
|
|
[% IF name == name2 %]
|
2013-02-20 15:47:57 +00:00
|
|
|
[% idle = 0 %]
|
|
|
|
<tr>
|
2016-03-16 14:19:18 +00:00
|
|
|
<td><tt>[% INCLUDE renderFullJobName project=step.project jobset=step.jobset job=step.job %]</tt></td>
|
2013-02-20 15:47:57 +00:00
|
|
|
<td><tt>[% step.system %]</tt></td>
|
2016-03-16 14:19:18 +00:00
|
|
|
<td><a href="[% c.uri_for('/build' step.build) %]">[% step.build %]</a></td>
|
2017-12-07 14:35:31 +00:00
|
|
|
<td>[% IF step.busy >= 30 %]<a class="row-link" href="[% c.uri_for('/build' step.build 'nixlog' step.stepnr 'tail') %]">[% step.stepnr %]</a>[% ELSE; step.stepnr; END %]</td>
|
2013-02-20 15:47:57 +00:00
|
|
|
<td><tt>[% step.drvpath.match('-(.*)').0 %]</tt></td>
|
2013-04-23 12:24:48 +00:00
|
|
|
<td style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
|
2013-02-20 15:47:57 +00:00
|
|
|
</tr>
|
2010-10-13 12:32:57 +00:00
|
|
|
[% END %]
|
2013-02-20 15:47:57 +00:00
|
|
|
[% END %]
|
|
|
|
[% IF idle == 1 %]
|
2015-07-10 13:34:29 +00:00
|
|
|
<tr><td colspan="6">Idle</td></tr>
|
2013-02-20 15:47:57 +00:00
|
|
|
[% END %]
|
2010-10-13 12:32:57 +00:00
|
|
|
</tbody>
|
2013-02-20 15:47:57 +00:00
|
|
|
[% END %]
|
2010-10-13 12:32:57 +00:00
|
|
|
</table>
|
|
|
|
|
2010-04-27 13:29:08 +00:00
|
|
|
[% END %]
|