diff options
Diffstat (limited to 'app/services/ci/pipelines/create_artifact_service.rb')
-rw-r--r-- | app/services/ci/pipelines/create_artifact_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/ci/pipelines/create_artifact_service.rb b/app/services/ci/pipelines/create_artifact_service.rb index 179e18f22e8..b7d334e436d 100644 --- a/app/services/ci/pipelines/create_artifact_service.rb +++ b/app/services/ci/pipelines/create_artifact_service.rb @@ -4,8 +4,8 @@ module Ci class CreateArtifactService def execute(pipeline) return unless ::Gitlab::Ci::Features.coverage_report_view?(pipeline.project) - return unless pipeline.has_coverage_reports? - return if pipeline.pipeline_artifacts.has_code_coverage? + return unless pipeline.can_generate_coverage_reports? + return if pipeline.has_coverage_reports? file = build_carrierwave_file(pipeline) |