OLD | NEW |
(Empty) | |
| 1 {% macro auth() %} |
| 2 <div class="row"> |
| 3 <span class="label">Your username:</span> |
| 4 <input type="text" name="username"/> |
| 5 </div> |
| 6 |
| 7 <div class="row"> |
| 8 <span class="label">Your password:</span> |
| 9 <input type="password" name="passwd"/> |
| 10 </div> |
| 11 {% endmacro %} |
| 12 |
| 13 {% macro auth_row() %} |
| 14 <tr> |
| 15 <td>Your username:</td> |
| 16 <td><input type="text" name="username"/></td> |
| 17 </tr> |
| 18 <tr> |
| 19 <td>Your password:</td> |
| 20 <td><input type="password" name="passwd"/></td> |
| 21 </tr> |
| 22 {% endmacro %} |
| 23 |
| 24 {% macro cancel_pending_build(cancel_url, authz, short=False, id='all') %} |
| 25 {% if not short or not authz.needAuthForm('cancelPendingBuild') %} |
| 26 <form method="post" name="cancel" action="{{ cancel_url }}" class='command c
ancelbuild' |
| 27 {{ 'style="display:inline"' if short else '' }}> |
| 28 {% if not short %} |
| 29 {% if on_all %} |
| 30 <p>To cancel all builds, fill out the following fields and |
| 31 push the 'Cancel' button</p> |
| 32 {% else %} |
| 33 <p>To cancel this build, fill out the following fields and |
| 34 push the 'Cancel' button</p> |
| 35 {% endif %} |
| 36 {% endif %} |
| 37 |
| 38 {% if authz.needAuthForm('cancelPendingBuild') %} |
| 39 {{ auth() }} |
| 40 {% elif not short %} |
| 41 <p>To cancel individual builds, click the 'Cancel' buttons above.</p> |
| 42 {% endif %} |
| 43 |
| 44 <input type="hidden" name="id" value="{{ id }}" /> |
| 45 <input type="submit" value="Cancel" /> |
| 46 </form> |
| 47 {% endif %} |
| 48 {% endmacro %} |
| 49 |
| 50 {% macro stop_change_builds(stopchange_url, changenum, authz) %} |
| 51 {% if not changenum or not authz.needAuthForm('stopChange') %} |
| 52 <form method="post" action="{{ stopchange_url }}" class='command stopchange'
> |
| 53 {% if changenum %} |
| 54 <p>To cancel all builds for this change, push the 'Cancel' button</p> |
| 55 {% else %} |
| 56 <p>To cancel builds for this builder for a given change, fill out all |
| 57 fields and push the 'Cancel' button</p> |
| 58 {% endif %} |
| 59 |
| 60 {% if authz.needAuthForm('cancelPendingBuild') %} |
| 61 {{ auth() }} |
| 62 {% endif %} |
| 63 |
| 64 {% if changenum %} |
| 65 <input type="hidden" name="change" value="{{ changenum }}" /> |
| 66 {% else %} |
| 67 <div class="row"> |
| 68 <span class="label">Change #:</span> |
| 69 <input type="text" name="change"/> |
| 70 </div> |
| 71 {% endif %} |
| 72 <input type="submit" value="Cancel" /> |
| 73 </form> |
| 74 {% endif %} |
| 75 {% endmacro %} |
| 76 |
| 77 {% macro stop_build(stop_url, authz, on_all=False, on_selected=False, builders=[
], short=False, label="Build") %} |
| 78 {% if not short or not authz.needAuthForm('stopBuild') %} |
| 79 <form method="post" name="stop_build" action="{{ stop_url }}" class='command
stopbuild' |
| 80 {{ 'style="display:inline"' if short else '' }}> |
| 81 {% if not short %} |
| 82 {% if on_all %} |
| 83 <p>To stop all builds, fill out the following field and |
| 84 push the <i>Stop {{ label }}</i> button</p> |
| 85 {% elif on_selected %} |
| 86 <p>To stop selected builds, select the builders, fill out the |
| 87 following field and push the <i>Stop {{ label }}</i> button</p> |
| 88 <table> |
| 89 {% for b in builders %} |
| 90 <tr> |
| 91 <td align="center"><input type="checkbox" name="selected" value="{
{ b.name }}"></td> |
| 92 <td class="box"><a href="{{ b.link }}">{{ b.name|e }}</a></td> |
| 93 </tr> |
| 94 {% endfor %} |
| 95 </table> |
| 96 |
| 97 {% else %} |
| 98 <p>To stop this build, fill out the following field and |
| 99 push the <i>Stop {{ label }}</i> button</p> |
| 100 {% endif %} |
| 101 {% endif %} |
| 102 |
| 103 {% if authz.needAuthForm('stopBuild') %} |
| 104 {{ auth() }} |
| 105 {% endif %} |
| 106 |
| 107 {% if not short %} |
| 108 <div class="row"> |
| 109 <span class="label">Reason:</span> |
| 110 <input type="text" name="comments"/> |
| 111 </div> |
| 112 {% endif %} |
| 113 |
| 114 <input type="submit" value="Stop {{ label }}" /> |
| 115 </form> |
| 116 {% endif %} |
| 117 {% endmacro %} |
| 118 |
| 119 {% macro force_build(force_url, authz, on_all=False, on_selected=False, builders
=[]) %} |
| 120 <form method="post" name="force_build" action="{{ force_url }}" class="command f
orcebuild"> |
| 121 |
| 122 {% if on_all %} |
| 123 <p>To force a build on <strong>all Builders</strong>, fill out the followin
g fields |
| 124 and push the 'Force Build' button</p> |
| 125 {% elif on_selected %} |
| 126 <p>To force a build on <strong>certain Builders</strong>, select the |
| 127 builders, fill out the following fields and push the |
| 128 'Force Build' button</p> |
| 129 |
| 130 <table> |
| 131 {% for b in builders %} |
| 132 <tr> |
| 133 <td align="center"><input type="checkbox" name="selected" value="{{ b.n
ame }}"></td> |
| 134 <td class="box"><a href="{{ b.link }}">{{ b.name|e }}</a></td> |
| 135 </tr> |
| 136 {% endfor %} |
| 137 </table> |
| 138 |
| 139 {% else %} |
| 140 <p>To force a build, fill out the following fields and |
| 141 push the 'Force Build' button</p> |
| 142 {% endif %} |
| 143 |
| 144 <table> |
| 145 {% if authz.needAuthForm('forceBuild') %} |
| 146 {{ auth_row() }} |
| 147 {% else %} |
| 148 <tr> |
| 149 <td>Your name:</td> |
| 150 <td><input type="text" name="username"/></td> |
| 151 </tr> |
| 152 {% endif %} |
| 153 |
| 154 <tr> |
| 155 <td>Reason for build:</td> |
| 156 <td><input type='text' name='comments' /></td> |
| 157 </tr> |
| 158 <tr> |
| 159 <td>Branch to build:</td> |
| 160 <td><input type='text' name='branch' /></td> |
| 161 </tr> |
| 162 <tr> |
| 163 <td>Revision to build:</td> |
| 164 <td><input type='text' name='revision' /></td> |
| 165 </tr> |
| 166 <tr> |
| 167 <td>Slave to use:</td> |
| 168 <td><input type='hidden' name='property1name' value='slavename' /> |
| 169 <input type='text' name='property1value' /></td> |
| 170 </tr> |
| 171 <tr> |
| 172 <td>Clobber:</td> |
| 173 <td><input type='checkbox' name='property2name' value='clobber' /></td> |
| 174 </tr> |
| 175 |
| 176 <tr><td><input type="submit" value="Force Build" /></td></tr> |
| 177 </table> |
| 178 </form> |
| 179 {% endmacro %} |
| 180 |
| 181 {% macro graceful_shutdown(shutdown_url, authz) %} |
| 182 <form method="post" action="{{ shutdown_url }}" class='command graceful_shutdo
wn'> |
| 183 |
| 184 <p>To cause this slave to shut down gracefully when it is idle, |
| 185 push the 'Graceful Shutdown' button</p> |
| 186 |
| 187 {% if authz.needAuthForm('gracefulShutdown') %} |
| 188 {{ auth() }} |
| 189 {% endif %} |
| 190 |
| 191 <input type="submit" value="Graceful Shutdown" /> |
| 192 </form> |
| 193 {% endmacro %} |
| 194 |
| 195 {% macro clean_shutdown(shutdown_url, authz) %} |
| 196 <form method="post" action="{{ shutdown_url }}" class='command clean_shutdown'
> |
| 197 <p>To cause this master to shut down cleanly, push the 'Clean Shutdown' button
.</p> |
| 198 <p>No other builds will be started on this master, and the master will |
| 199 stop once all current builds are finished.</p> |
| 200 |
| 201 {% if authz.needAuthForm('gracefulShutdown') %} |
| 202 {{ auth() }} |
| 203 {% endif %} |
| 204 |
| 205 <input type="submit" value="Clean Shutdown" /> |
| 206 </form> |
| 207 {% endmacro %} |
| 208 |
| 209 {% macro cancel_clean_shutdown(cancel_shutdown_url, authz) %} |
| 210 <form method="post" action="{{ cancel_shutdown_url }}" class='command cancel_c
lean_shutdown'> |
| 211 <p>To cancel a previously initiated shutdown, push the 'Cancel Shutdown' butto
n.</p> |
| 212 |
| 213 {% if authz.needAuthForm('gracefulShutdown') %} |
| 214 {{ auth() }} |
| 215 {% endif %} |
| 216 |
| 217 <input type="submit" value="Cancel Shutdown" /> |
| 218 </form> |
| 219 {% endmacro %} |
| 220 |
| 221 {% macro ping_builder(ping_url, authz) %} |
| 222 <form method="post" action="{{ ping_url }}" class='command ping_builder'> |
| 223 <p>To ping the buildslave(s), push the 'Ping' button</p> |
| 224 |
| 225 {% if authz.needAuthForm('gracefulShutdown') %} |
| 226 {{ auth() }} |
| 227 {% endif %} |
| 228 |
| 229 <input type="submit" value="Ping Builder" /> |
| 230 </form> |
| 231 {% endmacro %} |
| 232 |
| 233 {% macro rebuild_build(rebuild_url, authz, exactly, ss) %} |
| 234 <form method="post" action="{{ rebuild_url }}" class="command rebuild"> |
| 235 |
| 236 {% if exactly %} |
| 237 <p>This tree was built from a specific set of |
| 238 source files, and can be rebuilt exactly</p> |
| 239 {% else %} |
| 240 <p>This tree was built from the most recent revision |
| 241 {% if ss.branch %} |
| 242 (along branch {{ ss.branch }}) |
| 243 {% endif %} |
| 244 and thus it might not be possible to rebuild it |
| 245 exactly. <br/>Any changes that have been committed |
| 246 after this build was started <b>will</b> be |
| 247 included in a rebuild.</p> |
| 248 {% endif %} |
| 249 |
| 250 |
| 251 {% if on_all %} |
| 252 <p>To force a build on <strong>all Builders</strong>, fill out the followin
g fields |
| 253 and push the 'Force Build' button</p> |
| 254 {% else %} |
| 255 <p>To force a build, fill out the following fields and |
| 256 push the 'Force Build' button</p> |
| 257 {% endif %} |
| 258 |
| 259 {% if authz.needAuthForm('forceBuild') %} |
| 260 {{ auth() }} |
| 261 {% endif %} |
| 262 <tr> |
| 263 <td>Reason for re-running build:</td> |
| 264 <input type='text' name='comments' /> |
| 265 </tr> |
| 266 <input type="submit" value="Rebuild" /> |
| 267 </form> |
| 268 {% endmacro %} |
OLD | NEW |