If reports are used, require runner to expose `upload_multiple_artifacts` feature
This commit is contained in:
parent
2ebba1ff33
commit
6f264888d3
|
@ -338,7 +338,9 @@ module Ci
|
||||||
end
|
end
|
||||||
|
|
||||||
def runner_required_features
|
def runner_required_features
|
||||||
[]
|
features = []
|
||||||
|
features << :upload_multiple_artifacts if publishes_artifacts_reports?
|
||||||
|
features
|
||||||
end
|
end
|
||||||
|
|
||||||
def merge_request
|
def merge_request
|
||||||
|
@ -598,6 +600,10 @@ module Ci
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def publishes_artifacts_reports?
|
||||||
|
options.dig(:artifacts, :reports).any?
|
||||||
|
end
|
||||||
|
|
||||||
def hide_secrets(trace)
|
def hide_secrets(trace)
|
||||||
return unless trace
|
return unless trace
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue