summaryrefslogtreecommitdiff
path: root/app/services/ci/test_hook_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/ci/test_hook_service.rb')
-rw-r--r--app/services/ci/test_hook_service.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/services/ci/test_hook_service.rb b/app/services/ci/test_hook_service.rb
new file mode 100644
index 00000000000..3a17596aaeb
--- /dev/null
+++ b/app/services/ci/test_hook_service.rb
@@ -0,0 +1,7 @@
+module Ci
+ class TestHookService
+ def execute(hook, current_user)
+ Ci::WebHookService.new.build_end(hook.project.commits.last.last_build)
+ end
+ end
+end