2018-06-27 07:23:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-10-13 13:22:55 +00:00
|
|
|
class BuildCoverageWorker
|
2017-11-28 16:08:30 +00:00
|
|
|
include ApplicationWorker
|
2017-08-21 12:16:51 +00:00
|
|
|
include PipelineQueue
|
|
|
|
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2016-10-13 13:22:55 +00:00
|
|
|
def perform(build_id)
|
2017-04-11 19:10:12 +00:00
|
|
|
Ci::Build.find_by(id: build_id)&.update_coverage
|
2016-10-13 13:22:55 +00:00
|
|
|
end
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2016-10-13 13:22:55 +00:00
|
|
|
end
|