Skip to content
Snippets Groups Projects
Commit 357c38ce authored by Benedikt von St. Vieth's avatar Benedikt von St. Vieth
Browse files

Enable GitLab Pipeline Hooks.

parent 518b356a
Branches master
No related tags found
No related merge requests found
Pipeline #16047 passed
...@@ -41,6 +41,14 @@ def assess_reload(request): ...@@ -41,6 +41,14 @@ def assess_reload(request):
return True return True
else: else:
return False return False
elif webhook_action == u'Pipeline Hook':
payload = request.get_json()
if payload and payload['object_attributes']['status'] == 'success':
logging.debug('Got successfull pipeline from gitlab with id {}'
',reload'.format(payload['object_attributes']['id']))
return True
else:
return False
elif webhook_action == u'Push Hook': elif webhook_action == u'Push Hook':
logging.debug('Got push from gitlab, reload') logging.debug('Got push from gitlab, reload')
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment