summaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-23 14:34:45 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-23 14:34:45 +0200
commit6445b9a054c06648d6e09762749ee48b00e6e936 (patch)
treed34b8697c197c05265272b31870e12f9da407177 /utils/agljobtemplate.py
parentb4f560435abf211bf72e472a74e8da4756184224 (diff)
Simplify uniqid
Just use a random number. Fixes: Traceback (most recent call last): File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/create-jobs.py, line 126, in <module> main() File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/create-jobs.py, line 110, in main app_changeid=args.app_changeid, app_patchset=args.app_patchset, app_branch=args.app_branch) File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/agljobtemplate.py, line 113, in render_job job[uniqid] = AGL-%s-%s-%s-%d % (machine, branch, version, random.randint(1, 999999)) Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Ifef2d5831b37e69bef30f1d32730736dfafc5a57
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r--utils/agljobtemplate.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index 3f4d960..9979d2a 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -106,11 +106,7 @@ class Agljobtemplate(object):
job['priority'] = priority
job['build_type'] = build_type
job['image_type'] = "AGL-%s" % build_type
-
- if patchset != None:
- job["uniqid"] = "AGL-%s-%s-%s-%d" % (machine, changeid, patchset, random.randint(1, 999999))
- else:
- job["uniqid"] = "AGL-%s-%s-%s-%d" % (machine, branch, version, random.randint(1, 999999))
+ job["uniqid"] = "AGL-%s-%d" % (machine, random.randint(1, 999999))
defaults, infra = parse_cfg_file(self._template_path, 'default.cfg', build_type)