BigW Consortium Gitlab

build_hooks_worker.rb 208 Bytes
Newer Older
1
class BuildHooksWorker
2
  include ApplicationWorker
3 4
  include PipelineQueue

5
  queue_namespace :pipeline_hooks
6 7 8 9 10 11

  def perform(build_id)
    Ci::Build.find_by(id: build_id)
      .try(:execute_hooks)
  end
end