summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/parsers/junit_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/parsers/junit_parser.rb')
-rw-r--r--lib/gitlab/ci/parsers/junit_parser.rb2
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