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

12 lines
208 B
Ruby
Raw Normal View History

class BuildHooksWorker
include ApplicationWorker
include PipelineQueue
2017-11-28 11:16:50 -05:00
queue_namespace :pipeline_hooks
def perform(build_id)
Ci::Build.find_by(id: build_id)
.try(:execute_hooks)
end
end