-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilds.hbs
More file actions
65 lines (65 loc) · 2.95 KB
/
builds.hbs
File metadata and controls
65 lines (65 loc) · 2.95 KB
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
<ol class="breadcrumb">
<li class="text-primary breadcrumb-item">Project name - {{projectName}}</li>
<li class="text-primary breadcrumb-item">Branch name - {{projectBranchName}}</li>
</ol>
<br />
<h3>Builds</h3>
<!-- Shows branches on the browser -->
<br/>
<table>
<tr>
<th>Id</th>
<th>Name</th>
<th>Status</th>
<th>Stage</th>
<th>Reference branch </th>
<th>Artifact (filename and size) </th>
<th>Download artefact </th>
<th>Install artefact</th>
<th>Stack trace</th>
</tr>
{{#each buildID}}
<tr>
<td>{{this}} </td>
<td>{{lookup ../buildName @index}} </td>
<td>{{lookup ../buildStatus @index}} </td>
<td>{{lookup ../buildStage @index}} </td>
<td>{{lookup ../buildRefere @index}}</td>
{{#if (lookup ../JSONParsedFilename @index)}}
<td>{{{lookup ../JSONParsedFilename @index}}} {{lookup ../JSONParsedFileSize @index}}</td>
<td>
<a class="glyphicon glyphicon-cloud-download" aria-hidden="true" href="{{../gitLabUrl}}/{{../projectUserName}}/{{../projectName}}/-/jobs/{{this}}/artifacts/download">
</a>
</td>
<td>
<form action="/projects/branches/builds/install" method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" name="projectName" value="{{../projectName}}" />
<input type="hidden" name="projectBranchName" value="{{../projectBranchName}}" />
<input type="hidden" name="projectBranchBuildName" value="{{lookup ../buildName @index}}" />
<input type="hidden" name="dataUrl" value="{{../gitLabUrl}}/{{../projectUserName}}/{{../projectName}}/-/jobs/{{this}}/artifacts/raw/app/build/outputs/apk/app-debug.apk"
/>
<input type="submit" value="Install" />
</fieldset>
</form>
</td>
{{else}}
<td></td>
<td></td>
<td></td>
{{/if}}
<td>
<form action="/projects/branches/builds/trace" method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" name="projectName" value="{{../projectName}}" />
<input type="hidden" name="projectBranchName" value="{{../projectBranchName}}" />
<input type="hidden" name="projectBranchBuildName" value="{{lookup ../buildName @index}}" />
<input type="hidden" name="dataUrl" value="{{../gitLabUrl}}/{{../projectUserName}}/{{../projectName}}/-/jobs/{{this}}/trace"
/>
<input type="submit" value="Open stack trace" />
</fieldset>
</form>
</td>
</tr>
{{/each}}
</table>