diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-10-01 01:24:44 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-10-01 01:24:44 +0100 |
commit | ac8cd01b2cd3cad55cd0433bb626b193fd79b87c (patch) | |
tree | 4fd731f18d54d9c1c3e2bcac593bb6901ed10409 | |
parent | 47e990cb1a3e47f47681a669597ef320afb3b7e1 (diff) | |
download | orchestration-ac8cd01b2cd3cad55cd0433bb626b193fd79b87c.tar.gz |
Another workaround
-rw-r--r-- | source/bottlerock.py | 3 |
1 files changed, 2 insertions, 1 deletions
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} |