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

11 lines
239 B
Ruby
Raw Normal View History

class BuildFinishedWorker
include Sidekiq::Worker
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
2016-10-14 11:48:28 -04:00
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
end
end