aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2018-06-11 11:27:20 -0700
committerKevin Hilman <khilman@baylibre.com>2018-06-26 14:20:38 -0700
commit8d0014115f4efb3abd00d62dc85e582f831baa2a (patch)
tree15418e0b16b2410514e3738a68373df6faded858 /utils
parente0ff6f1ae01eaf39c0dea40dbf6c4faf137644bf (diff)
utils/agljobtemplate: fixup image_type, branch and version
Fixup LAVA job metadata that is used by kernelCI UI for displaying branch, and version info, and also set "image-type" to the AGL build type (e.g., gerrit, snapshot, release) Change-Id: I12ca93dfbe8629bde5dc35ab1f056f8331805e40 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index 59abcb0..dda2d77 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -99,6 +99,7 @@ class Agljobtemplate(object):
job['yocto_machine'] = machine
job['priority'] = priority
job['build_type'] = build_type
+ job['image_type'] = "AGL-%s" % build_type
defaults, infra = parse_cfg_file(self._template_path, 'default.cfg', build_type)
@@ -150,6 +151,12 @@ class Agljobtemplate(object):
if build_version is not None:
job['kernel_version'] = build_version
+ if url_version:
+ job['kernel_version'] = url_version
+
+ if url_branch:
+ job['vcs_branch'] = url_branch
+
if rfs_type is not None:
job['rootfs_type'] = rfs_type