diff options
Diffstat (limited to 'source/bottlerock.py')
-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} |