From cfd82634e7f70645d466a297ce55cd0e1a30420d Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Tue, 15 Jan 2019 11:30:44 -0800 Subject: templates/base: add new metadata fields To aid with better reporting, recent versions of the kernelci-backend require a few more metadatata fields for test results. The new required fields are test.plan, device.type and git.commit. Change-Id: I89cbddee019ae1e8b91b54a2d174aac4feaf769e Signed-off-by: Kevin Hilman --- templates/base/agl-base-defaults.jinja2 | 2 ++ templates/base/agl-metadata.jinja2 | 3 +++ 2 files changed, 5 insertions(+) (limited to 'templates/base') diff --git a/templates/base/agl-base-defaults.jinja2 b/templates/base/agl-base-defaults.jinja2 index c7ca324..554ab05 100644 --- a/templates/base/agl-base-defaults.jinja2 +++ b/templates/base/agl-base-defaults.jinja2 @@ -18,6 +18,8 @@ {%- set rootfs_type = rootfs_type|default("ramdisk") %} {%- set vcs_branch = vcs_branch|default("agl-branch") %} {%- set vcs_url = vcs_url|default(baseurl()) %} +{%- set vcs_commit = vcs_commit|default("agl-commit") %} +{%- set test_plan = test_plan|default("agl-testplan") %} {# Kernel type definition #} {%- if kernel_image|first|lower == "i" %} diff --git a/templates/base/agl-metadata.jinja2 b/templates/base/agl-metadata.jinja2 index 050eeff..71af3a6 100644 --- a/templates/base/agl-metadata.jinja2 +++ b/templates/base/agl-metadata.jinja2 @@ -1,5 +1,6 @@ metadata: git.branch: {{ vcs_branch }} + git.commit: {{ vcs_commit }} image.type: {{ image_type }} job.arch: {{ device_arch }} job.name: {{ name }} @@ -10,3 +11,5 @@ metadata: platform.mach: {{ device_mach }} platform.name: {{ device_type }} vcs.url: {{ vcs_url }} + test.plan: {{ test_plan }} + device.type: {{ device_type }} -- cgit 1.2.3-korg