From ac8cd01b2cd3cad55cd0433bb626b193fd79b87c Mon Sep 17 00:00:00 2001 From: Will Holland Date: Thu, 1 Oct 2015 01:24:44 +0100 Subject: Another workaround --- source/bottlerock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/bottlerock.py b/source/bottlerock.py index f895b4d..d511a05 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -79,6 +79,7 @@ def repo_update(): changes = request.json['changes'] for change in changes: ref = change['ref'] + ref = ref.replace('refs/heads/','') sha = change['new'] if repo_name == DEFINITIONS: configure.configure() @@ -87,7 +88,7 @@ def repo_update(): # if baseref changes then trigger firehose properties = {'repo_name':repo_name,'ref':ref} return sendchange('repo_update',properties) - elif ref in candidate_refs or ref.replace('refs/heads/','') in candidate_refs: + elif ref in candidate_refs in candidate_refs: # if a candidate ref changes then trigger that pipeline pipeline = configure.pipeline_from_candidate_ref(ref) properties = {"ref":ref,"sha":sha} -- cgit v1.2.1