aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMatt Hart <matthew.hart@linaro.org>2017-11-17 11:35:19 +0000
committerMatt Hart <matthew.hart@linaro.org>2017-11-17 11:35:19 +0000
commit404d28258d7555a727ee56a5f8bab3fd3719d314 (patch)
treee137333895a8c2cd81e9071790cc0f1124289db5 /templates
parent798e6edfc7c0d93d49da8c0227dbc26d1211b518 (diff)
Support multiple context overrides
Diffstat (limited to 'templates')
-rw-r--r--templates/base/kernel-ci-base.jinja211
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