diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-06-17 14:49:20 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-06-19 14:14:09 +0000 |
commit | e1e33be3287ae953b960c5963a7ece870a006328 (patch) | |
tree | a5b7468b409cb3a044c1d49c6d0ae6718f4b09b5 | |
parent | 51498175f186e49e5189abf1077a49e5db27741f (diff) |
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 <ktouil@baylibre.com>
-rw-r--r-- | utils/agljobtemplate.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 + '/' |