From f85aaa11059b36972d5fd1c9cb838e65dca7a5b0 Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Mon, 18 Feb 2019 15:16:30 +0100 Subject: Add new --build-id argument This patch adds a new build-id arguement that will fill the 'kernel_defconfig' in the metadata field with the build id extracted from the build-info file. Change-Id: I77bcc253a41d67d97afd7db32b8c8560d4309145 Signed-off-by: Khouloud Touil --- utils/agljobtemplate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/agljobtemplate.py') diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index e6876e7..1cda5ad 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -87,7 +87,7 @@ class Agljobtemplate(object): def render_job(self, machine, url=None, changeid=None, patchset=None, version=None, job_name="AGL-short-smoke", priority="medium", tests=[], rfs_type=None, - lava_callback=None, kci_callback=None, + lava_callback=None, kci_callback=None, build_id=None, rfs_image=None, kernel_image=None, dtb_image=None, modules_image=None, build_type=None, vcs_commit=None, vcs_branch=None, build_version=None, device_tags=""): @@ -160,6 +160,9 @@ class Agljobtemplate(object): if build_version is not None: job['kernel_version'] = build_version + if build_id is not None: + job['kernel_defconfig'] = build_id + if rfs_type is not None: job['rootfs_type'] = rfs_type -- cgit 1.2.3-korg