BigW Consortium Gitlab

build_finished_worker.rb 296 Bytes
Newer Older
1 2
class BuildFinishedWorker
  include Sidekiq::Worker
3 4 5
  include PipelineQueue

  enqueue_in group: :processing
6 7 8

  def perform(build_id)
    Ci::Build.find_by(id: build_id).try do |build|
9 10
      BuildCoverageWorker.new.perform(build.id)
      BuildHooksWorker.new.perform(build.id)
11 12 13
    end
  end
end