Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1573febcf23cdcbf8fc1540881c95e44b4c2f298 (plain) (blame)
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
<!-- **************************************************************************
#
# Copyright  (c) 2004-2009 Oracle Corporation.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors: 
#
#    Kohsuke Kawaguchi, Erik Ramfelt,
#        
#
#************************************************************************** --> 


<j:jelly 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" xmlns:p="/lib/hudson/project">
  <p:projectActionFloatingBox />

  <table style="margin-top: 1em; margin-left:1em;">

    <j:forEach var="act" items="${it.prominentActions}">
      <t:summary icon="${act.iconFileName}" href="${act.urlName}">
        ${act.displayName}
      </t:summary>
    </j:forEach>
    <t:summary icon="folder.png" href="ws/" permission="${it.WORKSPACE}">
      ${%Workspace}
    </t:summary>

    <t:artifactList caption="${%Last Successful Artifacts}"
        build="${it.lastSuccessfulBuild}" baseURL="lastSuccessfulBuild/"
        permission="${it.lastSuccessfulBuild.ARTIFACTS}"/>

    <t:summary icon="notepad.png" href="changes">
      ${%Recent Changes}
    </t:summary>

    <j:set var="tr" value="${it.lastCompletedBuild.testResultAction}"/>
    <j:if test="${tr!=null}">
      <t:summary icon="clipboard.png">
        <a href="lastCompletedBuild/testReport/">${%Latest Test Result}</a>
        <st:nbsp/>
        <t:test-result it="${tr}" />
      </t:summary>
    </j:if>
    <j:if test="${it.lastBuild!=null}">
      <t:summary icon="terminal.png" href="lastBuild/console">
        ${%Latest Console output}
      </t:summary>
    </j:if>
  </table>

  <!-- merge fragments from the actions -->
  <j:forEach var="a" items="${it.actions}">
    <!-- Force StaplerProxy to resolve, st:include doesn't respect it. -->
    <j:set var="b" value="${h.resolveStaplerObject(a)}"/>
    <st:include page="jobMain.jelly" it="${b}" optional="true">
      <j:if test="${a != b}">
        <!-- No luck with proxy's target, fall back to original object -->
        <st:include page="jobMain.jelly" it="${a}" optional="true" />
      </j:if>
    </st:include>
  </j:forEach>

  <p:upstream-downstream />
</j:jelly>

Back to the top