summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-21 11:40:24 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-21 11:40:24 +0100
commit5fe3fc5c989ac7b168f336e86771fcadfde90039 (patch)
tree73f63e161d6b6ae7ea39d1e7aaac01dcee66fcc6
parent9138cf49f6a03f4e33be3e1d406d25d4c3a62881 (diff)
downloadorchestration-5fe3fc5c989ac7b168f336e86771fcadfde90039.tar.gz
If baseref changes, trigger firehose
-rw-r--r--source/bottlerock.py7
-rw-r--r--source/orch_config.py1
2 files changed, 7 insertions, 1 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py
index 093c7b8..b6eb4fa 100644
--- a/source/bottlerock.py
+++ b/source/bottlerock.py
@@ -75,7 +75,12 @@ def repo_update():
for change in changes:
ref = change['ref']
if repo_name == DEFINITIONS:
- return sendchange('definitions_update',ref)
+ if ref == orch_config.definitions_base_ref:
+ # if baseref changes trigger firehose
+ properties = {'repo_name':repo_name,'ref':ref}
+ return sendchange('repo_update',properties)
+ else:
+ return sendchange('definitions_update',ref)
elif repo_name == TEST_REPO:
force = {"ref":"force"}
return sendchange('definitions_update',force)
diff --git a/source/orch_config.py b/source/orch_config.py
index d138990..2ad6443 100644
--- a/source/orch_config.py
+++ b/source/orch_config.py
@@ -70,3 +70,4 @@ build_timeout = 1800
deploy_timeout = 1800
web_user = "codething"
web_user_password = "password"
+definitions_base_ref = "cu010-trove/br6/genivi-demo-platform"