diff options
author | lollivier <lollivier@baylibre.com> | 2017-10-17 13:41:29 +0200 |
---|---|---|
committer | lollivier <lollivier@baylibre.com> | 2017-10-17 13:59:14 +0200 |
commit | 1216cdb06092b8c7108e3b1e977812a395badfee (patch) | |
tree | e25518f0f372ce69d68a592dcd07060d9451091d | |
parent | 86b09320ade0302492bf5460a94f059ea0ef0836 (diff) |
Default demo URLs to lavabox oneslavabox
Add an option to --urlbase, if the specified url is just 'demo'
default the url to the one for Lavabox local jobs.
If it is something else just use it as urlbase :)
Change-Id: Ia70f2894e4e5dbe2dfd325e2f7179986bbf48f76
Signed-off-by: lollivier <lollivier@baylibre.com>
-rw-r--r-- | utils/agljobtemplate.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 528a3b9..f4b5919 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -78,7 +78,10 @@ class Agljobtemplate(object): job['name'] = job_name job['yocto_machine'] = machine job['priority'] = priority - job['urlbase'] = url + if url == 'demo': + job['urlbase'] = 'http://healthchecks.lavabox:8080/pub/agl/ci/demo' + else: + job['urlbase'] = url job['test_templates'] = test_templates if build_version is not None: |