From e1e33be3287ae953b960c5963a7ece870a006328 Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Mon, 17 Jun 2019 14:49:20 +0200 Subject: Fix create-jobs for snapshot/daily/weekly build-type This patch take care of the snapshot/daily/weekly build-types if they are requested without mentioning the branch and version args. Bug-AGL: SPEC-2471 Change-Id: I86e5465162cc20be82b33feedcbed7f78300053d Signed-off-by: Khouloud Touil --- utils/agljobtemplate.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 0ecd0b5..a74b7a6 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -119,6 +119,10 @@ class Agljobtemplate(object): url_fragment = '' if (build_type == 'ci'): url_fragment += changeid + '/' + patchset + '/' + elif (build_type == 'snapshot' or build_type == 'weekly' or build_type == 'daily') and (not vcs_branch and not version): + vcs_branch = 'master' + version = 'latest' + url_fragment += vcs_branch + '/' + version + '/' else: url_fragment += vcs_branch + '/' + version + '/' -- cgit 1.2.3-korg