Class: Ci::DailyBuildGroupReportResultService

Inherits:
Object
  • Object
show all
Defined in:
app/services/ci/daily_build_group_report_result_service.rb

Instance Method Summary collapse

Instance Method Details

#execute(pipeline) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'app/services/ci/daily_build_group_report_result_service.rb', line 5

def execute(pipeline)
  if DailyBuildGroupReportResult.upsert_reports(coverage_reports(pipeline))
    Projects::CiFeatureUsage.insert_usage(
      project_id: pipeline.project_id,
      feature: :code_coverage,
      default_branch: pipeline.default_branch?
    )
  end
end