BigW Consortium Gitlab

build_finished_worker.rb 260 Bytes
Newer Older
1 2
class BuildFinishedWorker
  include Sidekiq::Worker
3
  include BuildQueue
4 5 6

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