From 8d0014115f4efb3abd00d62dc85e582f831baa2a Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 11 Jun 2018 11:27:20 -0700 Subject: 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 --- utils/agljobtemplate.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils') 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 -- cgit 1.2.3-korg