Merge pull request #19167 from edx/jmbowman/fix_xsscommitlint_junitxml

Fix xsscommitlint JUnit XML
This commit is contained in:
Jeremy Bowman
2018-10-29 14:14:58 -04:00
committed by GitHub

View File

@@ -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")