diff options
author | Stan Hu <stanhu@gmail.com> | 2015-11-20 23:05:56 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-11-20 23:05:56 +0300 |
commit | da0b9cb34744bbeb6d780fda8b8472b640dc9a6c (patch) | |
tree | c8350853dbc31ac19d6cb3d01a0ecaaab336c372 | |
parent | ba4dc176f812d8616657354778023c76f587f783 (diff) | |
parent | ad1f451f249692f9ed27d3f27ee712178cb30742 (diff) |
Merge branch 'fix-drone-service-hook' into 'master'
Fix Drone web hook URL not being updated
Fixes regression of !1774: fixes Drone Web hook for both service templates and project services.
See merge request !1856
-rw-r--r-- | app/models/project_services/drone_ci_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project_services/drone_ci_service.rb b/app/models/project_services/drone_ci_service.rb index c240213200d..127684bd274 100644 --- a/app/models/project_services/drone_ci_service.rb +++ b/app/models/project_services/drone_ci_service.rb @@ -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 |