gitlab-org--gitlab-foss/app/workers/build_hooks_worker.rb
2016-10-13 12:45:16 +02:00

9 lines
181 B
Ruby

class BuildHooksWorker
include Sidekiq::Worker
sidekiq_options queue: :default
def perform(build_id)
Ci::Build.find_by(id: build_id)
.try(:execute_hooks)
end
end