summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-08-07 17:04:30 +0200
committerKhouloud Touil <ktouil@baylibre.com>2019-08-08 12:09:30 +0200
commit55c756f9846551f826ac82d079a692d37d5c77d2 (patch)
tree5b41de5987877880c8192a540683c086624cdb20 /templates
parente2df48ce0e435ef82efde7159b2f953206fa439f (diff)
Add/use the new arguemnt --build-tags
Add new argument --build-tags to be used in the job template and to be passed to the tests to be run along with using --device-tags. Bug-AGL: SPEC-2721 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: I2fb4c3d0cb8cd1d0e3c36c1df55185cb4dde43c3
Diffstat (limited to 'templates')
-rw-r--r--templates/base/agl-base.jinja26
-rw-r--r--templates/tests/ci.jinja23
-rw-r--r--templates/tests/release.jinja21
3 files changed, 8 insertions, 2 deletions
diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2
index 0bc7188..20fc01f 100644
--- a/templates/base/agl-base.jinja2
+++ b/templates/base/agl-base.jinja2
@@ -14,6 +14,12 @@ tags:
- {{ tag|lower }}
{%- endfor %}
{%- endif %}
+{%- if BUILD_TAGS %}
+build-tags:
+{%- for tag in BUILD_TAGS %}
+- {{ tag|lower }}
+{%- endfor %}
+{%- endif %}
job_name: {{ name }}
diff --git a/templates/tests/ci.jinja2 b/templates/tests/ci.jinja2
index b5974fc..8408057 100644
--- a/templates/tests/ci.jinja2
+++ b/templates/tests/ci.jinja2
@@ -18,10 +18,9 @@
history: False
path: test-suites/short-smoke/service-check.yaml
name: service-check
-{%- if DEVICE_TAGS %}
parameters:
+ BUILD_TAGS: "{{ BUILD_TAGS|join(' ')|lower }}"
DEVICE_TAGS: "{{ DEVICE_TAGS|join(' ')|lower }}"
-{%- endif -%}
{% if "can" in DEVICE_TAGS|lower %}
{% include 'tests/can.jinja2' %}
diff --git a/templates/tests/release.jinja2 b/templates/tests/release.jinja2
index 965af1a..fdfe6bf 100644
--- a/templates/tests/release.jinja2
+++ b/templates/tests/release.jinja2
@@ -19,6 +19,7 @@
path: test-suites/short-smoke/service-check.yaml
name: service-check
parameters:
+ BUILD_TAGS: "{{ BUILD_TAGS }}"
DEVICE_TAGS: "{{ DEVICE_TAGS }}"
- test: