forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_build-details.html
125 lines (125 loc) · 6.48 KB
/
_build-details.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<div class='resource-details'>
<div class="row">
<div class="col-sm-12">
<h3>Status</h3>
<dl class="dl-horizontal left">
<dt>Status:</dt>
<dd>
<status-icon status="build.status.phase"></status-icon>
{{build.status.phase}}
<span ng-if="build | jenkinsLogURL">
<span class="text-muted">–</span>
<a ng-href="{{build | jenkinsLogURL}}" target="_blank">View Log</a>
</span>
</dd>
<dt>Started:</dt>
<dd>
<span ng-if="build.status.startTimestamp">
<span am-time-ago="build.status.startTimestamp"></span>
<span><span class="text-muted">–</span> {{build.status.startTimestamp | date : 'medium'}}</span>
</span>
<span ng-if="!build.status.startTimestamp"><em>not started</em></span>
</dd>
<dt>Duration:</dt>
<dd>
<span ng-switch="build.status.phase" class="hide-ng-leave">
<span ng-switch-when="Complete">{{(build.status.startTimestamp || build.metadata.creationTimestamp) | duration : build.status.completionTimestamp}}</span>
<span ng-switch-when="Failed">{{build.status.startTimestamp | duration : build.status.completionTimestamp}}</span>
<span ng-switch-when="Running">running for <duration-until-now timestamp="build.status.startTimestamp"></duration-until-now></span>
<span ng-switch-when="New">waiting for <duration-until-now timestamp="build.metadata.creationTimestamp"></duration-until-now></span>
<span ng-switch-when="Pending">waiting for <duration-until-now timestamp="build.metadata.creationTimestamp"></duration-until-now></span>
<span ng-switch-default>
<span ng-if="build.status.startTimestamp">{{build.status.startTimestamp | duration : build.status.completionTimestamp}}</span>
<span ng-if="!build.status.startTimestamp">waited for {{build.metadata.creationTimestamp | duration : build.status.completionTimestamp}}</span>
</span>
</span>
</dd>
<div ng-if='build.spec.triggeredBy.length'>
<dt>Triggered By:</dt>
<dd>
<div ng-repeat="trigger in build.spec.triggeredBy">
<div ng-switch="trigger.message">
<span ng-switch-when="Manually triggered">Manual build</span>
<span ng-switch-when="GitHub WebHook">
<ng-include src=" 'views/_webhook-trigger-cause.html' "></ng-include>
</span>
<span ng-switch-when="Generic WebHook">
<ng-include src=" 'views/_webhook-trigger-cause.html' "></ng-include>
</span>
<span ng-switch-when="Image change">
{{trigger.message}} for {{trigger.imageChangeBuild.fromRef.name}}
</span>
<span ng-switch-default ng-bind-html="trigger.message | linky : '_blank'"></span>
</div>
</div>
</dd>
</div>
</dl>
<h3>Configuration <span class="small" ng-if="buildConfigName">created from <a href="{{build | configURLForResource}}">{{buildConfigName}}</a></span></h3>
<dl class="dl-horizontal left">
<dt>Build Strategy:</dt>
<dd>{{build.spec.strategy.type | startCase}}</dd>
<dt ng-if-start="(build | buildStrategy).from">Builder Image:</dt>
<dd ng-if-end class="truncate">{{(build | buildStrategy).from | imageObjectRef : build.metadata.namespace}}<span ng-if="!(build | buildStrategy).from"><em>none</em></span></dd>
<dt>Source Type:</dt>
<dd>{{build.spec.source.type}}</dd>
<dt ng-if-start="build.spec.source.git.uri">Source Repo:</dt>
<dd ng-if-end><span class="word-break"><osc-git-link
uri="build.spec.source.git.uri"
ref="build.spec.source.git.ref"
context-dir="build.spec.source.contextDir">{{build.spec.source.git.uri}}</osc-git-link></span></dd>
<dt ng-if-start="build.spec.source.git.ref">Source Ref:</dt>
<dd ng-if-end>{{build.spec.source.git.ref}}</dd>
<dt ng-if-start="build.spec.source.contextDir">Source Context Dir:</dt>
<dd ng-if-end>{{build.spec.source.contextDir}}</dd>
<dt ng-if-start="outputTo = build.spec.output.to">Output Image:</dt>
<dd ng-if-end>
<a ng-if="outputTo.kind === 'ImageStreamTag' && (!outputTo.namespace || build.metadata.namespace === outputTo.namespace)"
ng-href="{{outputTo.name | navigateResourceURL : 'ImageStreamTag' : build.metadata.namespace}}">
{{outputTo | imageObjectRef : build.metadata.namespace}}
</a>
<span ng-if="outputTo.kind !== 'ImageStreamTag' || (outputTo.namespace && build.metadata.namespace !== outputTo.namespace)">
{{outputTo | imageObjectRef : build.metadata.namespace}}
</span>
</dd>
<dt ng-if-start="build.spec.output.pushSecret.name">Push Secret:</dt>
<dd ng-if-end>{{build.spec.output.pushSecret.name}}</dd>
<dt ng-if-start="build.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath">
Jenkinsfile Path:
</dt>
<dd>
<span ng-if="build | jenkinsfileLink">
<a ng-href="{{build | jenkinsfileLink}}">{{build.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath}}</a>
</span>
<span ng-if="!(build | jenkinsfileLink)">
{{build.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath}}
</span>
</dd>
<div ng-if-end class="small">
<a href="" ng-click="showJenkinsfileExamples()">What's a Jenkinsfile?</a>
</div>
<dt ng-if-start="build.spec.strategy.jenkinsPipelineStrategy.jenkinsfile">
Jenkinsfile:
</dt>
<dd></dd>
<div class="small pull-right mar-top-sm">
<a href="" ng-click="showJenkinsfileExamples()">What's a Jenkinsfile?</a>
</div>
<div ng-if-end ui-ace="{
mode: 'groovy',
theme: 'eclipse',
showGutter: false,
rendererOptions: {
fadeFoldWidgets: true,
highlightActiveLine: false,
showPrintMargin: false
},
advanced: {
highlightActiveLine: false
}
}" readonly ng-model="build.spec.strategy.jenkinsPipelineStrategy.jenkinsfile" class="ace-bordered ace-inline ace-read-only mar-top-md"></div>
</dl>
</div>
</div>
<annotations annotations="build.metadata.annotations"></annotations>
</div>