diff options
author | Matt Hart <matthew.hart@linaro.org> | 2017-11-17 11:35:19 +0000 |
---|---|---|
committer | Matt Hart <matthew.hart@linaro.org> | 2017-11-17 11:35:19 +0000 |
commit | 404d28258d7555a727ee56a5f8bab3fd3719d314 (patch) | |
tree | e137333895a8c2cd81e9071790cc0f1124289db5 /templates | |
parent | 798e6edfc7c0d93d49da8c0227dbc26d1211b518 (diff) |
Support multiple context overrides
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/kernel-ci-base.jinja2 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/base/kernel-ci-base.jinja2 b/templates/base/kernel-ci-base.jinja2 index cb869a4..a50871c 100644 --- a/templates/base/kernel-ci-base.jinja2 +++ b/templates/base/kernel-ci-base.jinja2 @@ -1,4 +1,4 @@ -{% block metadata %} +{%- block metadata %} metadata: image.type: 'kernel-ci' image.url: {{ image_url }} @@ -27,18 +27,17 @@ metadata: job.initrd_url: {{ initrd_url }} job.nfsrootfs_url: {{ nfsrootfs_url }} job.dtb_url: {{ dtb_url }} -{% endblock %} +{%- endblock %} {% block main %} device_type: {{ device_type }} {% if context %} context: -{%- for key, value in context.items() %} - {{ key }}: "{{ value }}" +{% for key, value in context.items() %} {{ key }}: "{{ value }}" {% endfor %} {% endif %} -{% if callback %} +{%- if callback %} notify: criteria: status: finished @@ -55,7 +54,7 @@ timeouts: job: minutes: 10 action: - minutes: 5 + minutes: 10 actions: power-off: seconds: 30 |