Class: Ci::BuildReportResultService

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

Instance Method Summary collapse

Instance Method Details

#execute(build) ⇒ Object


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

def execute(build)
  return unless build.has_test_reports?

  build.report_results.create!(
    project_id: build.project_id,
    data: tests_params(build)
  )
end