From 5fe3fc5c989ac7b168f336e86771fcadfde90039 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Mon, 21 Sep 2015 11:40:24 +0100 Subject: If baseref changes, trigger firehose --- source/bottlerock.py | 7 ++++++- source/orch_config.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1