diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-02-18 11:15:21 +0100 |
---|---|---|
committer | Khouloud Touil <ktouil@baylibre.com> | 2019-02-28 10:04:53 +0100 |
commit | 2a7259d308ebd8e9d28c47e72fae460a1ca2a1b2 (patch) | |
tree | 4305830102681722e2bb9258a777dabfb2861480 /utils/agljobtemplate.py | |
parent | 2a379506c2153e954cf8d80fa529d36bbcad813a (diff) |
Add new vcs_commit argument
Add new vcs_commit arguement that will display in the metadeta field
the build hash information.
Change-Id: I079dfb8efda2ce82677e867804b3937d5a1f13c2
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r-- | utils/agljobtemplate.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 33aea31..cfdf825 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -89,7 +89,7 @@ class Agljobtemplate(object): job_name="AGL-short-smoke", priority="medium", tests=[], rfs_type=None, lava_callback=None, kci_callback=None, rfs_image=None, kernel_image=None, dtb_image=None, modules_image=None, - build_type=None, + build_type=None, vcs_commit=None, build_version=None, device_tags=""): if machine not in self.machines: @@ -176,6 +176,9 @@ class Agljobtemplate(object): pass job['vcs_branch'] = vcs_branch + if vcs_commit is not None: + job['vcs_commit'] = vcs_commit + if rfs_type is not None: job['rootfs_type'] = rfs_type |