Commit 30b14327 authored by Kamil Trzciński's avatar Kamil Trzciński

If reports are used, require runner to expose `upload_multiple_artifacts` feature

parent 8122ec19
......@@ -342,7 +342,9 @@ module Ci
end
def runner_required_features
[]
features = []
features << :upload_multiple_artifacts if publishes_artifacts_reports?
features
end
def merge_request
......@@ -602,6 +604,10 @@ module Ci
end
end
def publishes_artifacts_reports?
options.dig(:artifacts, :reports).any?
end
def hide_secrets(trace)
return unless trace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment