summaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r--utils/agljobtemplate.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index cfdf825..e1bddc2 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, vcs_commit=None,
+ build_type=None, vcs_commit=None, vcs_branch=None,
build_version=None, device_tags=""):
if machine not in self.machines:
@@ -167,18 +167,12 @@ class Agljobtemplate(object):
elif build_version_default:
job['kernel_version'] = build_version_default
- if url_branch:
- vcs_branch = url_branch
- # if this is an 'int', then it was --changeid
- try:
- vcs_branch = "gerrit-%d" % int(vcs_branch)
- except:
- pass
- job['vcs_branch'] = vcs_branch
-
if vcs_commit is not None:
job['vcs_commit'] = vcs_commit
+ if vcs_branch is not None:
+ job['vcs_branch'] = vcs_branch
+
if rfs_type is not None:
job['rootfs_type'] = rfs_type