summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-08-07 17:04:30 +0200
committerKhouloud Touil <ktouil@baylibre.com>2019-08-08 12:09:30 +0200
commit55c756f9846551f826ac82d079a692d37d5c77d2 (patch)
tree5b41de5987877880c8192a540683c086624cdb20 /utils
parente2df48ce0e435ef82efde7159b2f953206fa439f (diff)
Add/use the new arguemnt --build-tags
Add new argument --build-tags to be used in the job template and to be passed to the tests to be run along with using --device-tags. Bug-AGL: SPEC-2721 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: I2fb4c3d0cb8cd1d0e3c36c1df55185cb4dde43c3
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py3
-rwxr-xr-xutils/create-jobs.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index a74b7a6..867bfab 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -91,7 +91,7 @@ class Agljobtemplate(object):
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="",
+ build_version=None, device_tags="", build_tags="",
applications_url=None, app_changeid=None, app_patchset=None, app_branch=None):
if machine not in self.machines:
@@ -157,6 +157,7 @@ class Agljobtemplate(object):
job['APPURL'] = applications_url
job['DEVICE_TAGS'] = device_tags
+ job['BUILD_TAGS'] = build_tags
test_templates = []
# If the user doesn't specify tests, use the default ones from the build-type
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index 5a0f660..28eb643 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('--build-tags', dest='build_tags', action='store',
+ help="The build tags to be used to create the job.", nargs='*', default="")
parser.add_argument('--commit', dest='vcs_commit', action='store',
help="The build hash.")
parser.add_argument('--build-id', dest='build_id', action='store',
@@ -100,7 +102,7 @@ def main():
modules_image=args.modules_img, vcs_branch=args.vcs_branch,
build_type=args.build_type, vcs_commit=args.vcs_commit,
build_version=args.build_version, device_tags=args.device_tags,
- applications_url=args.applications_url,
+ applications_url=args.applications_url, build_tags=args.build_tags,
app_changeid=args.app_changeid, app_patchset=args.app_patchset, app_branch=args.app_branch)
if args.job_file is None: