summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py5
-rwxr-xr-xutils/create-jobs.py4
2 files changed, 7 insertions, 2 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
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index cac7a9c..0d6b0d7 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -55,6 +55,8 @@ def parse_cmdline(machines, tests, rfs_types):
help="the version number of the build.")
parser.add_argument('--device-tags', dest='device_tags', action='store',
help="The device tags to be used to create the job.", nargs='*', default="")
+ parser.add_argument('--commit', dest='vcs_commit', action='store',
+ help="The build hash.")
args = parser.parse_args()
@@ -86,7 +88,7 @@ def main():
kernel_image=args.kernel_img,
dtb_image=args.dtb_img,
modules_image=args.modules_img,
- build_type=args.build_type,
+ build_type=args.build_type, vcs_commit=args.vcs_commit,
build_version=args.build_version, device_tags=args.device_tags)
if args.job_file is None: