-
Notifications
You must be signed in to change notification settings - Fork 168
/
index.jelly
43 lines (43 loc) · 1.46 KB
/
index.jelly
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
<!--
Displays the console output
-->
<?jelly escape-by-default='true'?>
<st:compress xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="${it.parent.displayName} #${it.number} Console" norefresh="true">
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.png"
href="${h.getNearestAncestorUrl(request,it.targetBuild)}/promotion/"
title="${%Back to Promotion Status}" />
</l:tasks>
</l:side-panel>
<l:main-panel>
<t:buildCaption>
Console Output
</t:buildCaption>
<l:rightspace>
<a href="consoleText">
<img src="${imagesURL}/24x24/document.png" alt="" />${%View as plain text}
</a>
</l:rightspace>
<j:choose>
<!-- Do progressive console output -->
<j:when test="${it.building}">
<pre id="out"></pre>
<div id="spinner">
<img src="${imagesURL}/spinner.gif" />
</div>
<t:progressiveText href="progressiveLog" idref="out" spinner="spinner" />
</j:when>
<!-- output is completed now. -->
<j:otherwise>
<pre>
<st:getOutput var="output" />
<j:whitespace>${it.writeLogTo(0,output)}</j:whitespace>
</pre>
</j:otherwise>
</j:choose>
</l:main-panel>
</l:layout>
</st:compress>