gitlab-org--gitlab-foss/app/workers/build_finished_worker.rb

15 lines
351 B
Ruby
Raw Normal View History

class BuildFinishedWorker
include Sidekiq::Worker
include PipelineQueue
enqueue_in group: :processing
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
2017-09-25 12:54:08 -04:00
BuildTraceSectionsWorker.perform_async(build.id)
2016-10-14 11:48:28 -04:00
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
end
end