Fix Drone web hook URL not being updated
This commit is contained in:
parent
b3cd7243e9
commit
ad1f451f24
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class DroneCiService < CiService
|
|||
|
||||
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.path}", "&name=#{project.path}", "&access_token=#{token}"].join if project
|
||||
hook.enable_ssl_verification = enable_ssl_verification
|
||||
hook.save
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue