diff options
Diffstat (limited to 'lib/gitlab/ci/parsers/junit_parser.rb')
-rw-r--r-- | lib/gitlab/ci/parsers/junit_parser.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ci/parsers/junit_parser.rb b/lib/gitlab/ci/parsers/junit_parser.rb index f554ff9a20f..0ead2121aab 100644 --- a/lib/gitlab/ci/parsers/junit_parser.rb +++ b/lib/gitlab/ci/parsers/junit_parser.rb @@ -15,6 +15,8 @@ module Gitlab test_suite.add_result(test_case) end end + rescue + Rails.logger.error "Failed to parse Junit file" # Since xml_data is user-generated contents, parser could fail if they include corrupted-data end private |