From 8ea702cfe590e94ea496609f85ba0f23bda2dcce Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 14 Sep 2016 19:42:16 +0800 Subject: Revert "Split notification integration into another branch" This reverts commit 1404aa8677969a03ed56e8f8350257f317f576d8. --- app/services/ci/send_pipeline_notification_service.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'app/services/ci') diff --git a/app/services/ci/send_pipeline_notification_service.rb b/app/services/ci/send_pipeline_notification_service.rb index ceb182801f7..cfbcad5dadf 100644 --- a/app/services/ci/send_pipeline_notification_service.rb +++ b/app/services/ci/send_pipeline_notification_service.rb @@ -6,14 +6,8 @@ module Ci @pipeline = new_pipeline end - def execute(recipients) - email_template = "pipeline_#{pipeline.status}_email" - - return unless Notify.respond_to?(email_template) - - recipients.each do |to| - Notify.public_send(email_template, pipeline, to).deliver_later - end + def execute(recipients = nil) + notification_service.pipeline_finished(pipeline, recipients) end end end -- cgit v1.2.1