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