Commit 2e067480 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Rename for a more consistent pipeline worker name, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_17039533
parent b4e75155
......@@ -85,7 +85,7 @@ module Ci
after_transition any => [:success, :failed] do |pipeline|
pipeline.run_after_commit do
SendPipelineNotificationWorker.perform_async(pipeline.id)
PipelineNotificationWorker.perform_async(pipeline.id)
end
end
end
......
......@@ -32,7 +32,7 @@ class PipelinesEmailService < Service
return unless all_recipients.any?
pipeline_id = data[:object_attributes][:id]
SendPipelineNotificationWorker.new.perform(pipeline_id, all_recipients)
PipelineNotificationWorker.new.perform(pipeline_id, all_recipients)
end
def can_test?
......
class SendPipelineNotificationWorker
class PipelineNotificationWorker
include Sidekiq::Worker
def perform(pipeline_id, recipients = nil)
......
require 'spec_helper'
describe SendPipelineNotificationWorker do
describe PipelineNotificationWorker do
let(:pipeline) do
create(:ci_pipeline,
project: project,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment