Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-07-29 13:49:46 +0400
committerRobert Schilling <rschilling@student.tugraz.at>2014-07-29 13:49:46 +0400
commit7cefdb49eb460e87e3c3b827af32ae1b6834c4da (patch)
treeb1ce1dcdb146e094d5929b0c385495239cd8e663 /app/services/test_hook_service.rb
parentd30454e112378c24cc9edfd7b511ca42bdb1e399 (diff)
Prevent 500 if hook url is down, fixes #7376
Diffstat (limited to 'app/services/test_hook_service.rb')
-rw-r--r--app/services/test_hook_service.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb
index 17d86a7a274..b6b1ef29b51 100644
--- a/app/services/test_hook_service.rb
+++ b/app/services/test_hook_service.rb
@@ -2,5 +2,8 @@ class TestHookService
def execute(hook, current_user)
data = GitPushService.new.sample_data(hook.project, current_user)
hook.execute(data)
+ true
+ rescue SocketError
+ false
end
end