Skip to content
Snippets Groups Projects
Commit f62d0254 authored by Jeremy Bowman's avatar Jeremy Bowman
Browse files

Fix xsscommitlint JUnit XML

parent a9f4151d
No related merge requests found
......@@ -612,6 +612,15 @@ def run_xsscommitlint():
_write_metric(violations_count_str, metrics_report)
# Output report to console.
sh("cat {metrics_report}".format(metrics_report=metrics_report), ignore_error=True)
if num_violations:
fail_quality(
'xsscommitlint',
"FAILURE: XSSCommitLinter Failed.\n{error_message}\n"
"See {xsscommitlint_report} or run the following command to hone in on the problem:\n"
" ./scripts/xss-commit-linter.sh -h".format(
error_message=violations_count_str, xsscommitlint_report=xsscommitlint_report
)
)
write_junit_xml("xsscommitlint")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment