gitlab-org--gitlab-foss/app/workers/build_finished_worker.rb
2016-10-14 17:48:28 +02:00

10 lines
239 B
Ruby

class BuildFinishedWorker
include Sidekiq::Worker
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
end
end