2014-02-10 20:15:23 +00:00
|
|
|
<div class="resource-view" resource="repository" error-message="'No repository found'"></div>
|
2014-02-13 02:39:23 +00:00
|
|
|
<div class="container repo repo-build" ng-show="accessDenied">
|
|
|
|
You do not have permission to view this page
|
|
|
|
</div>
|
|
|
|
<div class="container repo repo-build" ng-show="repo">
|
2014-02-10 20:15:23 +00:00
|
|
|
<div class="header row">
|
|
|
|
<a href="{{ '/repository/' + repo.namespace + '/' + repo.name }}" class="back"><i class="fa fa-chevron-left"></i></a>
|
|
|
|
<h3>
|
|
|
|
<span class="repo-circle no-background" repo="repo"></span>
|
2014-02-13 23:58:28 +00:00
|
|
|
<span class="repo-breadcrumb" repo="repo" subsection-icon="'fa-tasks'" subsection="'Build History'"></span>
|
2014-02-10 20:15:23 +00:00
|
|
|
</h3>
|
2014-02-15 03:59:44 +00:00
|
|
|
|
|
|
|
<div class="repo-controls">
|
|
|
|
<button class="btn btn-success" ng-click="showNewBuildDialog()">
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
New Dockerfile Build
|
|
|
|
</button>
|
|
|
|
</div>
|
2014-02-10 20:15:23 +00:00
|
|
|
</div>
|
|
|
|
|
2014-03-05 23:13:04 +00:00
|
|
|
<div class="row" ng-show="!builds">
|
|
|
|
<div class="quay-spinner"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row" ng-show="builds && !builds.length">
|
2014-02-13 02:16:11 +00:00
|
|
|
There are no builds for this repository
|
2014-02-10 20:15:23 +00:00
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-02-13 02:16:11 +00:00
|
|
|
<div class="row" ng-show="builds.length">
|
2014-02-10 20:15:23 +00:00
|
|
|
<!-- Side tabs -->
|
2014-02-11 00:13:28 +00:00
|
|
|
<div class="col-sm-2">
|
2014-02-10 20:15:23 +00:00
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2014-03-05 21:17:01 +00:00
|
|
|
<li ng-class="currentBuild == build ? 'active' : ''" ng-repeat="build in builds">
|
2014-02-11 00:13:28 +00:00
|
|
|
<a class="build-tab-link" href="javascript:void(0)" ng-click="setCurrentBuild(build.id, true)">
|
2014-02-10 20:15:23 +00:00
|
|
|
<span class="phase-icon" ng-class="build.phase"></span>
|
2014-02-12 18:52:12 +00:00
|
|
|
<span>{{ build.display_name }}</span>
|
2014-02-10 20:15:23 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Content -->
|
2014-11-24 21:07:38 +00:00
|
|
|
<div class="col-sm-10">
|
2014-02-11 00:13:28 +00:00
|
|
|
<div class="tab-content" onresize="adjustLogHeight()">
|
|
|
|
<div ng-repeat="build in builds" class="tab-pane build-pane" ng-class="currentBuild == build ? 'active' : ''">
|
2014-02-20 18:27:59 +00:00
|
|
|
<div class="alert alert-info" ng-show="build.trigger">
|
2014-03-05 21:27:56 +00:00
|
|
|
Triggered by: <span class="trigger-description" trigger="build.trigger" short="true" style="margin-left: 10px"></span>
|
2014-02-20 18:27:59 +00:00
|
|
|
</div>
|
|
|
|
|
2014-02-11 00:13:28 +00:00
|
|
|
<div class="build-header">
|
|
|
|
<div class="timing">
|
|
|
|
<i class="fa fa-clock-o"></i>
|
|
|
|
Started: <span am-time-ago="build.started || 0"></span>
|
2014-02-17 22:28:20 +00:00
|
|
|
<span style="display: inline-block; margin-left: 20px" ng-show="currentBuild.resource_key">
|
|
|
|
<i class="fa fa-archive"></i>
|
|
|
|
<a href="/repository/{{ repo.namespace }}/{{ repo.name }}/build/{{ currentBuild.id }}/buildpack"
|
|
|
|
style="display: inline-block; margin-left: 6px" bs-tooltip="tooltip.title"
|
2014-04-11 22:21:13 +00:00
|
|
|
data-title="View the uploaded build package for this build">Build Package</a>
|
2014-02-17 22:28:20 +00:00
|
|
|
</span>
|
2014-02-11 00:13:28 +00:00
|
|
|
</div>
|
2014-02-10 20:15:23 +00:00
|
|
|
<span class="phase-icon" ng-class="build.phase"></span>
|
2014-02-13 02:16:11 +00:00
|
|
|
<span class="build-message" phase="build.phase"></span>
|
2014-02-10 20:15:23 +00:00
|
|
|
<div class="build-progress" build="build"></div>
|
|
|
|
</div>
|
2014-02-11 00:13:28 +00:00
|
|
|
|
|
|
|
<div class="build-logs">
|
2014-02-13 02:16:11 +00:00
|
|
|
<div ng-show="!logEntries">
|
2014-02-11 03:43:48 +00:00
|
|
|
<span class="quay-spinner"></span>
|
|
|
|
</div>
|
2014-02-13 02:16:11 +00:00
|
|
|
|
|
|
|
<div class="log-container" ng-class="container.type" ng-repeat="container in logEntries">
|
|
|
|
<div class="container-header" ng-class="container.type == 'phase' ? container.message : ''"
|
2014-03-18 19:08:46 +00:00
|
|
|
ng-switch on="container.type" ng-click="container.logs.toggle()">
|
2014-02-13 02:16:11 +00:00
|
|
|
<i class="fa chevron"
|
2014-03-18 19:08:46 +00:00
|
|
|
ng-class="container.logs.isVisible ? 'fa-chevron-down' : 'fa-chevron-right'" ng-show="hasLogs(container)"></i>
|
2014-02-13 02:16:11 +00:00
|
|
|
<div ng-switch-when="phase">
|
|
|
|
<span class="container-content build-log-phase" phase="container"></span>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-when="error">
|
2014-08-19 00:34:39 +00:00
|
|
|
<span class="container-content build-log-error" error="container" entries="logEntries"></span>
|
2014-02-11 03:43:48 +00:00
|
|
|
</div>
|
2014-02-13 02:16:11 +00:00
|
|
|
<div ng-switch-when="command">
|
|
|
|
<span class="container-content build-log-command" command="container"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-02-13 02:16:11 +00:00
|
|
|
<!-- Display the entries for the container -->
|
2014-03-18 19:08:46 +00:00
|
|
|
<div class="container-logs" ng-show="container.logs.isVisible">
|
|
|
|
<div class="log-entry" bindonce ng-repeat="entry in container.logs.visibleEntries">
|
2014-02-13 02:16:11 +00:00
|
|
|
<span class="id" bo-text="$index + container.index + 1"></span>
|
2014-02-14 03:01:26 +00:00
|
|
|
<span class="message" bo-html="processANSI(entry.message, container)"></span>
|
2014-02-11 03:43:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-11 00:13:28 +00:00
|
|
|
</div>
|
2014-02-14 23:37:06 +00:00
|
|
|
<div style="margin-top: 10px">
|
2014-09-11 23:59:44 +00:00
|
|
|
<span class="quay-spinner" ng-show="pollChannel.working"></span>
|
2014-02-15 03:59:44 +00:00
|
|
|
<button class="btn" ng-show="(build.phase == 'error' || build.phase == 'complete') && build.resource_key"
|
|
|
|
ng-class="build.phase == 'error' ? 'btn-success' : 'btn-default'"
|
2014-02-14 23:37:06 +00:00
|
|
|
ng-click="askRestartBuild(build)">
|
|
|
|
<i class="fa fa-refresh"></i>
|
|
|
|
Run Build Again
|
|
|
|
</button>
|
2014-02-11 00:13:28 +00:00
|
|
|
<span class="build-id">{{ build.id }}</span>
|
|
|
|
</div>
|
2014-02-10 20:15:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-14 23:37:06 +00:00
|
|
|
|
2014-02-15 03:59:44 +00:00
|
|
|
<div class="dockerfile-build-dialog" show-now="buildDialogShowCounter" repository="repo"
|
|
|
|
build-started="handleBuildStarted(build)">
|
|
|
|
</div>
|
|
|
|
|
2014-02-14 23:37:06 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="confirmRestartBuildModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Run Dockerfile Build?</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
Are you sure you want to run this Dockerfile build again? The results will be immediately pushed to the repository.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="restartBuild(currentBuild)">Run Build</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
2014-02-10 20:15:23 +00:00
|
|
|
</div>
|