summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-02-18 11:48:15 +0100
committerKhouloud Touil <ktouil@baylibre.com>2019-02-28 10:04:56 +0100
commit4c5445305fc4ba1738ad226c471869935f29f578 (patch)
tree751a1f79f7668c3a9c898cc1fa4c9c9a61f49fa6 /utils
parent977be2a5c2b3205a15ee79616d85cae57e578191 (diff)
Reuse the build_version to fill the kernel_version
The build_version will fill the kernel_version with the right value, this value will be the 'DISTRO_VERSION' extracted from the build-info file. Change-Id: Iecfdfd587dc15d53ea872d45b1916d33f6e382bf Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index e1bddc2..e6876e7 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -106,16 +106,13 @@ class Agljobtemplate(object):
defaults, infra = parse_cfg_file(self._template_path, 'default.cfg', build_type)
# If the user doesn't specify an URL, use the default one from the build-type
- build_version_default = None
+
if url is None:
if infra == 'AGL':
url_base = ''
for section in defaults:
if section[0] == "urlbase":
url_base = section[1]
- # If not set, create a build_version from other args
- if (not build_version) and (url_branch) and (url_version):
- build_version_default = 'AGL-' + build_type + '-' + url_branch + '-' + url_version
url_fragment = ''
if (build_type != 'default'):
@@ -154,25 +151,15 @@ class Agljobtemplate(object):
job['test_templates'] = test_templates
- if build_version is not None:
- job['kernel_version'] = build_version
- elif url_version:
- kernel_version = url_version
- # if this is an 'int', then it was --patchset
- try:
- kernel_version = "patchset-%d" % int(kernel_version)
- except:
- pass
- job['kernel_version'] = kernel_version
- elif build_version_default:
- job['kernel_version'] = build_version_default
-
if vcs_commit is not None:
job['vcs_commit'] = vcs_commit
if vcs_branch is not None:
job['vcs_branch'] = vcs_branch
+ if build_version is not None:
+ job['kernel_version'] = build_version
+
if rfs_type is not None:
job['rootfs_type'] = rfs_type