From 05146fa425d94a77ba35b43ac3b0a5c633163d4e Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Tue, 22 Aug 2017 16:07:47 -0700 Subject: initial snapshot: LAVA job creation based on templates Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6 Signed-off-by: Jerome Brunet Signed-off-by: Loys Ollivier Signed-off-by: Kevin Hilman --- templates/base/agl-base.jinja2 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/base/agl-base.jinja2 (limited to 'templates/base/agl-base.jinja2') diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2 new file mode 100644 index 0000000..1119aaa --- /dev/null +++ b/templates/base/agl-base.jinja2 @@ -0,0 +1,36 @@ +{%- extends 'base/agl-base-defaults.jinja2' %} +{%- block job %} +{%- block metadata %} +metadata: + image.type: 'AGL' +{% endblock %} +{%- block main %} +device_type: {{ device_type }} +job_name: {{ name }} + +timeouts: + job: + minutes: {{ job_timeout }} + action: + minutes: {{ action_timeout }} + connection: + minutes: {{ connection_timeout }} +priority: {{ priority }} +visibility: public +{% endblock %} +{%- block actions %} +actions: +{%- block deploy %} +- deploy: + timeout: + minutes: {{ deploy_timeout }} +{%- endblock %} +{%- block boot %} +{% endblock %} +{%- block tests %} +{%-for test_template in test_templates %} +{% include test_template %} +{%- endfor %} +{% endblock %} +{% endblock %} +{% endblock %} -- cgit 1.2.3-korg