2015-08-03 06:02:44 +00:00
|
|
|
<!-- <button ng-if="build.status !== 'pending' && build.status !== 'running'" ng-click="restart()">Restart</button>
|
|
|
|
<button ng-if="build.status === 'pending' || build.status === 'running'" ng-click="cancel()">Cancel</button>
|
|
|
|
-->
|
|
|
|
<main class="flex">
|
|
|
|
<aside>
|
|
|
|
<div>
|
|
|
|
<div class="build-section">
|
|
|
|
<div class="status"><i class="material-icons">close</i></div><!--remove-->
|
|
|
|
<div class="build-summary">
|
2015-08-10 07:29:04 +00:00
|
|
|
<h2><small class="status {{build.status}}">{{ build.status }}</small>{{ build.head_commit.message }}</h2>
|
2015-08-03 06:02:44 +00:00
|
|
|
<p><em>{{ build.head_commit.author.login }}</em> pushed to <em>{{ build.head_commit.branch }}</em> {{ build.started_at | fromNow }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-12 12:22:55 +00:00
|
|
|
|
2015-08-10 03:52:08 +00:00
|
|
|
<div ng-class="{'list':true, 'job-list':true, 'matrix-list': build.jobs && build.jobs.length > 1 }">
|
|
|
|
<a ng-repeat="job in build.jobs" ng-href="{{ repo.full_name }}/{{ build.number }}/{{ job.number }}" ng-class="{'active': job.number == step }">
|
2015-08-03 06:02:44 +00:00
|
|
|
<div>
|
2015-08-10 03:18:21 +00:00
|
|
|
<div class="status {{ job.status }} status-small">
|
|
|
|
<i class="material-icons">{{ job.status | icon }}</i>
|
2015-08-03 06:02:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>{{ job.number }}</div>
|
|
|
|
<div>
|
|
|
|
<div class="param" ng-repeat="(key, value) in job.environment">
|
|
|
|
{{ key.toUpperCase() }}={{ value }}
|
|
|
|
</div>
|
2015-08-13 06:56:05 +00:00
|
|
|
<div class="meta-group" ng-if="job.status !== 'pending' && job.status !== 'running'">
|
2015-08-11 05:17:58 +00:00
|
|
|
<div class="meta">finished {{ job.started_at | fromNow }}</div>
|
|
|
|
<div class="meta">duration of {{ job.finished_at - job.started_at | toDuration }}</div>
|
|
|
|
<div class="meta">with exit code {{ job.exit_code }}</div>
|
|
|
|
</div>
|
2015-08-13 06:56:05 +00:00
|
|
|
<div class="meta-group" ng-if="job.status === 'running'">
|
|
|
|
<div class="meta">started {{ job.started_at | fromNow }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="meta-group" ng-if="job.status === 'pending'">
|
|
|
|
<div class="meta">pending execution</div>
|
|
|
|
</div>
|
2015-08-03 06:02:44 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2015-08-13 06:56:05 +00:00
|
|
|
|
2015-08-13 15:44:06 +00:00
|
|
|
<button ng-if="build.status !== 'pending' && build.status !== 'running'" ng-click="restart()" class="button button-restart">Restart</button>
|
2015-08-03 06:02:44 +00:00
|
|
|
</div>
|
|
|
|
</aside>
|
2015-07-12 12:22:55 +00:00
|
|
|
|
2015-08-03 06:02:44 +00:00
|
|
|
<article class="console">
|
2015-07-13 05:23:50 +00:00
|
|
|
|
2015-08-03 06:02:44 +00:00
|
|
|
<div class="button-tail" ng-if="build.status === 'running'" ng-click="tail()">
|
|
|
|
<i class="material-icons">expand_more</i>
|
|
|
|
</div>
|
2015-07-12 12:22:55 +00:00
|
|
|
|
2015-08-03 06:02:44 +00:00
|
|
|
<pre id="term"></pre>
|
|
|
|
</article>
|
2015-08-10 07:29:04 +00:00
|
|
|
</main>
|