diff options
author | Malena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com> | 2021-03-10 12:37:14 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-03-27 20:04:06 +0000 |
commit | bd4eb88ece66e32aaa22861c5eddc40a5dc4e9c5 (patch) | |
tree | 28dd290cfcdedb36b5e923c60b5981bc776b92a9 /.cirrus.yml | |
parent | 51d02b308638c31d6cd4c46125ce9155fc033ecf (diff) | |
download | sonarqube-bd4eb88ece66e32aaa22861c5eddc40a5dc4e9c5.tar.gz sonarqube-bd4eb88ece66e32aaa22861c5eddc40a5dc4e9c5.zip |
BUILD-857 Cleanup Jest Junit report before processing
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 5 |
1 files changed, 4 insertions, 1 deletions
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 |