summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/ci/build.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 91a4bc8d2f8..6d38f899390 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -338,7 +338,9 @@ module Ci
end
def runner_required_features
- []
+ features = []
+ features << :upload_multiple_artifacts if publishes_artifacts_reports?
+ features
end
def merge_request
@@ -598,6 +600,10 @@ module Ci
end
end
+ def publishes_artifacts_reports?
+ options.dig(:artifacts, :reports).any?
+ end
+
def hide_secrets(trace)
return unless trace