File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,14 @@ on_exit() {
108108 fi
109109
110110 # Create a junit file for running this script.
111-
112- # Delete output file from this script because it contains a duplicate output
113- if [[ $( find " ${ORIGINAL_ARTIFACTS} " -maxdepth 1 -name ' junit\.*\.xmla' | wc -l) -gt 0 ]]; then
114- # There are junit files in artifacts
111+ if [[ $( find " ${ORIGINAL_ARTIFACTS} " -maxdepth 1 -name ' junit\.*\.xml' | wc -l) -gt 0 ]]; then
112+ # There are junit files in artifacts so the script succeeded.
115113 junit::createJunitReportE2Esh 0 " ${ORIGINAL_ARTIFACTS} /junit.e2e-sh.xml"
116114 else
115+ # No junit files in artifacts so the script failed.
117116 junit::createJunitReportE2Esh 1 " ${ORIGINAL_ARTIFACTS} /junit.e2e-sh.xml" " ${ORIGINAL_ARTIFACTS} /${E2E_SH_LOG_FILE} "
118117 fi
119- # Cleanup the additionally written log file, the same content will be in build-log.txt.
118+ # Always cleanup the additionally written log file used for the junit report , the same content will be in build-log.txt.
120119 rm " ${ORIGINAL_ARTIFACTS} /${E2E_SH_LOG_FILE} "
121120}
122121
You can’t perform that action at this time.
0 commit comments