diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 14:08:13 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 14:08:13 +0300 |
commit | 41f28a9ffabf4eb45c53836ea4de3b7a49229eaa (patch) | |
tree | 174d41cf6bb28ccc3c88727618886a431364a63c /app | |
parent | 06b8f47cf3b8ce65012fe905f6d3953ff175fa85 (diff) |
Add factory for parsers. Add required specification in json schema matcher. Improved test code.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 59d533bd4d5..faa27216f28 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -635,7 +635,7 @@ module Ci def collect_test_reports!(test_reports) test_reports.get_suite(group_name).tap do |test_suite| each_test_report do |file_type, blob| - parse_test_report!(test_suite, file_type, blob) + Gitlab::Ci::Parsers.fabricate!(file_type).parse!(blob, test_suite) end end end @@ -650,11 +650,6 @@ module Ci end end - def parse_test_report!(test_suite, file_type, blob) - "Gitlab::Ci::Parsers::#{file_type.capitalize}Parser".constantize - .new(blob).parse!(test_suite) - end - def update_artifacts_size self.artifacts_size = legacy_artifacts_file&.size end |