diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-07-30 17:18:28 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-08-01 12:25:19 +0200 |
commit | 6f264888d3b3710225f3a3dd65d64fe857198dfb (patch) | |
tree | 9354d73d46c193e91f8eef317f260e2a5c97f6a9 /app/models | |
parent | 2ebba1ff33bcac341495e6ceb5f44429c55d878f (diff) | |
download | gitlab-ce-6f264888d3b3710225f3a3dd65d64fe857198dfb.tar.gz |
If reports are used, require runner to expose `upload_multiple_artifacts` feature
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 8 |
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 |