2014-02-15 03:59:44 +00:00
|
|
|
<div class="dockerfile-build-dialog-element">
|
|
|
|
<!-- Modal message dialog -->
|
2015-08-20 23:24:51 +00:00
|
|
|
<div class="modal fade dockerfilebuildModal">
|
2016-09-29 13:19:21 +00:00
|
|
|
<div class="co-dialog modal-dialog">
|
2015-08-20 23:24:51 +00:00
|
|
|
<div class="modal-content" ng-show="triggersResource && triggersResource.loading">
|
|
|
|
<div class="cor-loader"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-content" ng-show="!triggersResource || !triggersResource.loading">
|
2016-09-29 13:19:21 +00:00
|
|
|
<div class="modal-header ahead-of-tabs">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"
|
|
|
|
ng-show="!buildStarting">×</button>
|
2014-02-15 03:59:44 +00:00
|
|
|
<h4 class="modal-title">
|
2016-09-29 13:19:21 +00:00
|
|
|
Start Repository Build
|
2014-02-15 03:59:44 +00:00
|
|
|
</h4>
|
|
|
|
</div>
|
2016-09-29 13:19:21 +00:00
|
|
|
<ul class="co-top-tab-bar" ng-show="triggers.length > 0">
|
|
|
|
<li class="co-top-tab" ng-class="viewTriggers ? 'active': ''" ng-click="showTriggers(true)">Invoke Build Trigger</li>
|
|
|
|
<li class="co-top-tab" ng-class="!viewTriggers ? 'active': ''" ng-click="showTriggers(false)">Upload Dockerfile</li>
|
|
|
|
</ul>
|
2015-08-20 23:24:51 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<div class="co-alert co-alert-danger" ng-show="errorMessage">
|
2014-02-15 03:59:44 +00:00
|
|
|
{{ errorMessage }}
|
|
|
|
</div>
|
2015-08-20 23:24:51 +00:00
|
|
|
|
|
|
|
<!-- Upload Dockerfile -->
|
|
|
|
<div ng-show="!viewTriggers">
|
2016-09-29 13:19:21 +00:00
|
|
|
<div class="dockerfile-build-form" repository="repository" is-ready="hasDockerfile"
|
|
|
|
ready-for-build="readyForBuild(startBuild)"></div>
|
2015-08-20 23:24:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Start Build Trigger -->
|
|
|
|
<div ng-show="viewTriggers">
|
2016-09-29 13:19:21 +00:00
|
|
|
<p style="padding: 10px;">Manually running a build trigger provides the means for invoking a build trigger as-if
|
|
|
|
called from the underlying service for the latest commit to a particular branch or tag.</p>
|
|
|
|
|
|
|
|
<table class="cor-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Trigger Description</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="trigger in triggers">
|
|
|
|
<td><span class="trigger-description" trigger="trigger"></span></td>
|
|
|
|
<td>
|
|
|
|
<a href="javascript:void(0)" ng-click="runTriggerNow(trigger)"
|
|
|
|
ng-if="trigger.can_invoke">Run Trigger Now</a>
|
|
|
|
<span ng-if="!trigger.can_invoke"
|
|
|
|
data-title="You do not have permission to run this trigger" bs-tooltip>
|
|
|
|
<i class="fa fa-exclamation-triangle"></i> No permission to run
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2015-08-20 23:24:51 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
2014-02-15 03:59:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-09-29 13:19:21 +00:00
|
|
|
<button type="button" class="btn btn-primary" ng-click="startBuild()"
|
|
|
|
ng-disabled="!hasDockerfile || buildStarting"
|
|
|
|
ng-show="!viewTriggers">Start Build</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"
|
|
|
|
ng-disabled="buildStarting">Close</button>
|
2014-02-15 03:59:44 +00:00
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
2015-08-20 23:24:51 +00:00
|
|
|
<div class="manual-trigger-build-dialog" repository="repository" counter="startTriggerCounter"
|
|
|
|
trigger="startTrigger"
|
|
|
|
build-started="handleBuildStarted(build)"></div>
|
2014-02-15 03:59:44 +00:00
|
|
|
</div>
|