aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/status/web/templates/build.html
blob: 0f508880d1f360aff29206fd8f6b987974d91ea9 (plain)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
{% extends "layout.html" %}
{% import 'forms.html' as forms %}
{% from "change_macros.html" import change with context %}

{% block content %}

<h1>
Builder <a href="{{ path_to_builder }}">{{ b.getBuilder().getName() }}</a>
Build #{{ b.getNumber() }}
</h1>

<div class="column">

{% if not b.isFinished() %}
  <h2>Build In Progress:</h2>

  {% if when_time %}
    <p>ETA: {{ when_time }} [{{ when }}]</p>
  {% endif %}

  {{ current_step }}
  
  {% if authz.advertiseAction('stopBuild', request) %}
    <h2>Stop Build</h2>
    {{ forms.stop_build(build_url+"/stop", authz, on_all=False, short=False, label='This Build') }}
  {% endif %}
{% else %}
  <h2>Results:</h2>

  <p class="{{ result_css }} result">   
    {{ b.getText()|join(' ')|capitalize }}
  </p>
   
  {% if b.getTestResults() %}
    <h3><a href="{{ tests_link }}"/></h3>
  {% endif %}
{% endif %}

<h2>
{% if sourcestamps|count == 1 %}
SourceStamp:
{% else %}
SourceStamps:
{% endif %}
</h2>

{% for ss in sourcestamps %}
<h3>{{ ss.codebase }}</h3>
    <table class="info" width="100%">
    {% set ss_class = cycler('alt','') %}

    {% if ss.project %}
      <tr class="{{ ss_class.next() }}"><td class="left">Project</td><td>{{ ss.project|projectlink }}</td></tr>
    {% endif %}

    {% if ss.repository %}
      <tr class="{{ ss_class.next() }}"><td class="left">Repository</td><td>{{ ss.repository|repolink }}</td></tr>
    {% endif %}

    {% if ss.branch %}
      <tr class="{{ ss_class.next() }}"><td class="left">Branch</td><td>{{ ss.branch|e }}</td></tr>
    {% endif %}

    {% if ss.revision %}
      <tr class="{{ ss_class.next() }}"><td class="left">Revision</td><td>{{ ss.revision|revlink(ss.repository) }}</td></tr>
    {% endif %}

    {% if got_revisions[ss.codebase] %}
      <tr class="{{ ss_class.next() }}"><td class="left">Got Revision</td><td>{{ got_revisions[ss.codebase]|revlink(ss.repository) }}</td></tr>
    {% endif %}

    {% if ss.patch %}
      <tr class="{{ ss_class.next() }}"><td class="left">Patch</td><td>YES</td></tr>
    {% endif %}

    {% if ss.changes %}
      <tr class="{{ ss_class.next() }}"><td class="left">Changes</td><td><a href="#changes-{{ ss.codebase }}">{{ ss.changes|count }} change{{ 's' if ss.changes|count > 1 else '' }}</a></td></tr>
    {% endif %}

    {% if not ss.branch and not ss.revision and not ss.patch and not ss.changes %}
      <tr class="{{ ss_class.next() }}"><td class="left" colspan="2">Build of most recent revision</td></tr>
    {% endif %}
    </table>
{% endfor %}

{#
 # TODO: turn this into a table, or some other sort of definition-list
 # that doesn't take up quite so much vertical space
 #}
   
<h2>BuildSlave:</h2>
  
{% if slave_url %}  
  <a href="{{ slave_url|e }}">{{ b.getSlavename()|e }}</a>
{% else %}
  {{ b.getSlavename()|e }} 
{% endif %}

<h2>Reason:</h2>
<p>
{{ b.getReason()|e }}
</p>

<h2>Steps and Logfiles:</h2>

{#
 # TODO:
 #       urls = self.original.getURLs()
 #       ex_url_class = "BuildStep external"
 #       for name, target in urls.items():
 #           text.append('[<a href="%s" class="%s">%s</a>]' %
 #                       (target, ex_url_class, html.escape(name)))
 #}

<ol>
{% for s in steps %}
  <li>
    <div class="{{ s.css_class }} result">
      <a href="{{ s.link }}">{{ s.name }}</a> 
      {{ s.text }}&nbsp;<span style="float:right">{{ '( ' + s.time_to_run + ' )' if s.time_to_run else '' }}</span>
    </div>

    <ol>
      {% set item_class = cycler('alt', '') %}
      {% for l in s.logs %}
        <li class="{{ item_class.next() }}"><a href="{{ l.link }}">{{ l.name }}</a></li>
      {% else %}
        <li class="{{ item_class.next() }}">- no logs -</li>
      {% endfor %}
    
      {% for u in s.urls %}
        <li class="{{ item_class.next() }}"><a href="{{ u.url }}">{{ u.logname }}</a></li>
      {% endfor %}
    </ol>  
  </li>
{% endfor %}
</ol>

</div>
<div class="column">

<h2>Build Properties:</h2>

<table class="info" width="100%">
<tr><th>Name</th><th>Value</th><th>Source</th></tr>

{% for p in properties %}
{% if p.source != "Force Build Form" %}
  <tr class="{{ loop.cycle('alt', '') }}">
    <td class="left">{{ p.name|e }}</td>
    {% if p.short_value %}
        <td>{{ p.short_value|e }} .. [property value too long]</td>
    {% else %}
        {% if p.value is not mapping %}
            <td>{{ p.value|e }}</td>
        {% else %}
            <td>
                <table class="info" width="100%">
                    {%- for key, value in p.value.items() recursive %}
                        <tr><td>{{ key|e }}</td><td>{{ value|e }}</td></tr>
                    {% endfor %}
                </table>
            </td>
        {% endif %}
    {% endif %}
    <td>{{ p.source|e }}</td>
  </tr>
{% endif %}
{% endfor %}
</table>
<h2>Forced Build Properties:</h2>
<table class="info" width="100%">
<tr><th>Name</th><th>Label</th><th>Value</th></tr>

{% for p in properties %}
    {% if p.source == "Force Build Form" %}
  <tr class="{{ loop.cycle('alt', '') }}">
    <td class="left">{{ p.name|e }}</td>
    <td class="left">
    {% if p.label %}
    {{ p.label }}
    {% endif %}    
    </td>
    {% if p.text %}
    <td><textarea readonly cols="{{p.cols}}" rows="{{p.rows}}">{{ p.text|e }}</textarea></td>
    {% else %}
    <td>{{ p.value|e }}</td>
    {% endif %}
  </tr>
  {% endif %}    
{% endfor %}
</table>

<h2>Responsible Users:</h2>

{% if responsible_users %}
  <ol>
  {% for u in responsible_users %}
     <li class="{{ loop.cycle('alt', '') }}">{{ u|user }}</li>
  {% endfor %}
  </ol>
{% else %}
  <p>no responsible users</p>
{% endif %}


<h2>Timing:</h2>
<table class="info" width="100%">
  <tr class="alt"><td class="left">Start</td><td>{{ start }}</td></tr>
{% if end %}
  <tr><td class="left">End</td><td>{{ end }}</td></tr>
{% endif %}
  <tr {{ 'class="alt"' if end else '' }}><td class="left">Elapsed</td><td>{{ elapsed }}</td></tr>
</table>

</div>

<br style="clear:both"/>
  
{% if has_changes %}
    <div class="column">
      <h2>All Changes:</h2>
        {% for ss in sourcestamps %}
            {% if ss.changes %}
            <h3 id="changes-{{ ss.codebase }}"> {{ ss.codebase }}:</h3>
            <ol>
                  {% for c in ss.changes %}
                    <li><h3>Change #{{ c.number }}</h3>
                      {{ change(c.asDict()) }}
                    </li>
                  {% endfor %}
            </ol>
            {% endif %}
        {% endfor %}
    </div>
{% endif %}

{% endblock %}