Class: Ci::ExtractSectionsFromBuildTraceService
- Inherits:
-
BaseService
- Object
- BaseService
- Ci::ExtractSectionsFromBuildTraceService
- Defined in:
- app/services/ci/extract_sections_from_build_trace_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods inherited from BaseService
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from BaseService
Instance Method Details
#execute(build) ⇒ Object
5 6 7 8 9 10 |
# File 'app/services/ci/extract_sections_from_build_trace_service.rb', line 5 def execute(build) return false unless build.trace_sections.empty? Gitlab::Database.bulk_insert(BuildTraceSection.table_name, extract_sections(build)) # rubocop:disable Gitlab/BulkInsert true end |