From: Malena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com> Date: Wed, 10 Mar 2021 11:37:14 +0000 (+0100) Subject: BUILD-857 Cleanup Jest Junit report before processing X-Git-Tag: 8.9.0.43852~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd4eb88ece66e32aaa22861c5eddc40a5dc4e9c5;p=sonarqube.git BUILD-857 Cleanup Jest Junit report before processing --- diff --git a/.cirrus.yml b/.cirrus.yml index 3f32ac8757a..dd3adb9c844 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -71,10 +71,13 @@ postgres_additional_container_template: &POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE POSTGRES_PASSWORD: postgres reports_junit_on_failure_template: &REPORTS_JUNIT_ON_FAILURE_TEMPLATE + jest_junit_cleanup_script: > + find . -type f -wholename "**/build/test-results/test-jest/junit.xml" -exec + xmlstarlet edit --inplace --delete '//testsuite[@errors=0 and @failures=0]' {} \; reports_artifacts: path: "**/build/reports/**/*" junit_artifacts: - path: "**/test-results/**/*.xml" + path: "**/build/test-results/**/*.xml" format: junit screenshots_on_failure_template: &REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE