woodpecker/server/static/scripts/views/build.html

87 lines
1.8 KiB
HTML
Raw Normal View History

2015-04-08 22:43:59 +00:00
<h1>{{ repo.full_name }}/{{ build.number }}</h1>
<a href="/{{ repo.full_name }}">Back</a>
2015-04-17 05:07:13 +00:00
<div>
<button ng-if="build.state !== 'pending' && build.state !== 'started'" ng-click="restart()">Restart</button>
<button ng-if="build.state === 'pending' || build.state === 'started'" ng-click="cancel()">Cancel</button>
</div>
2015-04-08 22:43:59 +00:00
<dl>
<dt>Build State</dt>
<dd>{{ build.state }}</dd>
<dt>Started</dt>
<dd>{{ build.started_at | fromNow }}</dd>
<dt>Duration</dt>
<dd>{{ build.duration | toDuration }}</dd>
<dt>Type</dt>
<dd>{{ build.head_commit ? "push" : "pull request" }}</dd>
<dt>Ref</dt>
<dd>{{ build | ref }}</dd>
<dt>Sha</dt>
<dd>{{ build | sha }}</dd>
<dt>Author</dt>
<dd>{{ build | author }}</dd>
<dt>Message</dt>
<dd>{{ build | message }}</dd>
</dl>
<hr>
<dl>
<dt>Task State</dt>
<dd>{{ task.state }}</dd>
<dt>Started</dt>
<dd>{{ task.started_at | fromNow }}</dd>
<dt>Finished</dt>
<dd>{{ task.finished_at | fromNow }}</dd>
<dt>Duration</dt>
<dd>{{ task.duration | toDuration }}</dd>
<dt>Exit Code</dt>
<dd>{{ task.exit_code }}</dd>
<dt>Matrix</dt>
<dd>{{ task.environment }}</dd>
</dl>
<hr>
2015-04-30 07:20:48 +00:00
<button ng-if="build.state === 'running'" ng-click="tail()">(un)Follow</button>
<pre id="term" ng-if="build.state !== 'pending'">{{ logs }}</pre>
2015-04-08 22:43:59 +00:00
<table border="1">
<thead>
<tr>
<th>Number</th>
<th>Status</th>
<th>Started</th>
<th>Finished</th>
<th>Duration</th>
<th>Exit Code</th>
<th>Matrix</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="task in build.tasks">
2015-04-08 22:43:59 +00:00
<td><a ng-href="{{ repo.full_name }}/{{ build.number }}/{{ task.number }}">{{ task.number }}</a></td>
<td>{{ task.state }}</td>
<td>{{ task.started_at | fromNow }}</td>
<td>{{ task.finished_at | fromNow }}</td>
<td>{{ task.duration | toDuration }}</td>
<td>{{ task.exit_code }}</td>
<td>{{ task.environment }}</td>
</tr>
</tbody>
</table>