Commit 6fcdc773 authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'master' into 'master'

Drone hook API endpoint

See merge request gitlab-org/gitlab!64871
parents 67a79e97 dd42fd29
......@@ -16,7 +16,7 @@ module Integrations
def compose_service_hook
hook = service_hook || build_service_hook
# If using a service template, project may not be available
hook.url = [drone_url, "/api/hook", "?owner=#{project.namespace.full_path}", "&name=#{project.path}", "&access_token=#{token}"].join if project
hook.url = [drone_url, "/hook", "?owner=#{project.namespace.full_path}", "&name=#{project.path}", "&access_token=#{token}"].join if project
hook.enable_ssl_verification = !!enable_ssl_verification
hook.save
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment