diff options
Diffstat (limited to 'app/workers/ci/pipeline_artifacts/coverage_report_worker.rb')
-rw-r--r-- | app/workers/ci/pipeline_artifacts/coverage_report_worker.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/workers/ci/pipeline_artifacts/coverage_report_worker.rb b/app/workers/ci/pipeline_artifacts/coverage_report_worker.rb new file mode 100644 index 00000000000..4de56f54f44 --- /dev/null +++ b/app/workers/ci/pipeline_artifacts/coverage_report_worker.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Ci + module PipelineArtifacts + class CoverageReportWorker + include ApplicationWorker + include PipelineBackgroundQueue + + feature_category :code_testing + + idempotent! + + def perform(pipeline_id) + Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline| + Ci::PipelineArtifacts::CoverageReportService.new.execute(pipeline) + end + end + end + end +end |