diff --git a/templates/testreport/diff.yml b/templates/testreport/diff.yml index b23b71cec6bd202d33a80f751270e268519e1290..06de7344639430e0a3f90d9761467504b2b66862 100644 --- a/templates/testreport/diff.yml +++ b/templates/testreport/diff.yml @@ -26,7 +26,7 @@ # Download the report of the previous pipeline. # Can't use python-gitlab for that yet, see https://github.com/python-gitlab/python-gitlab/issues/1926. - TEST_REPORT_ARTIFACT_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/$LAST_JOB/artifacts/$TEST_REPORT_ARTIFACT_FILE" - - 'curl --output "$TEST_REPORT_ARTIFACT_FILE.old" --location --header "JOB-TOKEN: $CI_JOB_TOKEN" "$TEST_REPORT_ARTIFACT_URL"' + - 'curl --fail --output "$TEST_REPORT_ARTIFACT_FILE.old" --location --header "JOB-TOKEN: $CI_JOB_TOKEN" "$TEST_REPORT_ARTIFACT_URL"' # Compare it to the report of this pipeline. - report_diff "$TEST_REPORT_ARTIFACT_FILE.old" "$TEST_REPORT_ARTIFACT_FILE" report_diff.xml - junitparser verify report_diff.xml