{% macro cancel_pending_build(cancel_url, authz, short=False, id='all') %}
{% if not short %} {% if id == 'all' %}

To cancel all builds, push the 'Cancel' button

To cancel individual builds, click the 'Cancel' buttons above.

{% else %}

To cancel this build, push the 'Cancel' button

{% endif %} {% endif %}
{% endmacro %} {% macro stop_change_builds(stopchange_url, changenum, authz) %} {% if not changenum %}
{% if changenum %}

To cancel all builds for this change, push the 'Cancel' button

{% else %}

To cancel builds for this builder for a given change, fill out the following field and push the 'Cancel' button

{% endif %} {% if changenum %} {% else %}
Change #:
{% endif %}
{% endif %} {% endmacro %} {% macro stop_build(stop_url, authz, on_all=False, on_selected=False, builders=[], short=False, label="Build") %} {% if not short %}
{% if not short %} {% if on_all %}

To stop all builds, fill out the following field and push the Stop {{ label }} button

{% elif on_selected %}

To stop selected builds, select the builders, fill out the following field and push the Stop {{ label }} button

{% for b in builders %} {% endfor %}
{{ b.name|e }}
{% else %}

To stop this build, fill out the following field and push the Stop {{ label }} button

{% endif %} {% endif %} {% if not short %}
Reason:
{% endif %}
{% endif %} {% endmacro %} {% macro cancel_build(cancel_url, authz, on_all=False, on_selected=False, builders=[], short=False, label="Build") %} {% if not short %}
{% if not short %} {% if on_all %}

To cancel all pending builds, fill out the following field and push the Cancel {{ label }} button

{% elif on_selected %}

To cancel selected pending builds, select the builders, fill out the following field and push the Cancel {{ label }} button

{% for b in builders %} {% endfor %}
{{ b.name|e }}
{% else %}

To cancel this pending build, fill out the following field and push the Cancel {{ label }} button

{% endif %} {% endif %} {% if not short %}
Reason:
{% endif %}
{% endif %} {% endmacro %} {% macro force_build_scheduler_parameter(f, authz, request, sch, default_props) %} {% if f and not f.hide and (f.fullName != "username" or not authz.authenticated(request)) %}
{% if 'text' in f.type or 'int' in f.type %} {{f.label}} {% elif 'bool' in f.type%} {{f.label}} {% elif 'textarea' in f.type %} {{f.label}} {% elif 'list' in f.type %} {{f.label}} {% elif 'nested' in f.type %} {% if f.label %}{{f.label}}{% endif %} {% for subfield in f.fields %} {{ force_build_scheduler_parameter(subfield, authz, request, sch, default_props) }} {% endfor %} {% endif %}
{% endif %} {% endmacro %} {% macro force_build_one_scheduler(force_url, authz, request, on_all, on_selected, builders, sch, default_props) %}

{{ sch.name|e }}

{% if on_all %}

To force a build on all Builders, fill out the following fields and push the 'Force Build' button

{% elif on_selected %}

To force a build on certain Builders, select the builders, fill out the following fields and push the 'Force Build' button

{% for b in builders %} {% if b.name in sch.builderNames %} {% endif %} {% endfor %}
{{ b.name|e }}
{% else %}

To force a build, fill out the following fields and push the 'Force Build' button

{% endif %} {% for f in sch.all_fields %} {{ force_build_scheduler_parameter(f, authz, request, sch, default_props) }} {% endfor %}
{% endmacro %} {% macro force_build(force_url, authz, request, on_all=False, on_selected=False, builders=[], force_schedulers={},default_props={}) %} {% for name, sch in force_schedulers.items() | sort %} {{ force_build_one_scheduler(force_url, authz, request, on_all, on_selected, builders, sch, default_props=default_props) }} {% endfor %} {% endmacro %} {% macro graceful_shutdown(shutdown_url, authz) %}

To cause this slave to shut down gracefully when it is idle, push the 'Graceful Shutdown' button

{% endmacro %} {% macro pause_slave(pause_url, authz, paused) %}
{% if paused %}

To cause this slave to start running new builds again, push the 'Unpause Slave' button

{% else %}

To cause this slave to stop running new builds, push the 'Pause Slave' button

{% endif %} {% if paused %} {% else %} {% endif %}
{% endmacro %} {% macro clean_shutdown(shutdown_url, authz) %}

To cause this master to shut down cleanly, push the 'Clean Shutdown' button.

No other builds will be started on this master, and the master will stop once all current builds are finished.

{% endmacro %} {% macro cancel_clean_shutdown(cancel_shutdown_url, authz) %}

To cancel a previously initiated shutdown, push the 'Cancel Shutdown' button.

{% endmacro %} {% macro ping_builder(ping_url, authz) %}

To ping the buildslave(s), push the 'Ping' button

{% endmacro %} {% macro rebuild_build(rebuild_url, authz, ss) %}
{% if on_all %}

To force a build on all Builders, fill out the following fields and push the 'Force Build' button

{% else %}

To force a build, fill out the following fields and push the 'Force Build' button

{% endif %}
Reason for re-running build:
Rebuild using:
{% endmacro %} {% macro show_users(users_url, authz) %}

To show users, press the 'Show Users' button

{% endmacro %}