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 @@ -112,15 +112,14 @@ on_exit() {
112112 fi
113113
114114 # Create a junit file for running this script.
115-
116- # Delete output file from this script because it contains a duplicate output
117- if [[ $( find " ${ORIGINAL_ARTIFACTS} " -maxdepth 1 -name ' junit\.*\.xmla' | wc -l) -gt 0 ]]; then
118- # There are junit files in artifacts
115+ if [[ $( find " ${ORIGINAL_ARTIFACTS} " -maxdepth 1 -name ' junit\.*\.xml' | wc -l) -gt 0 ]]; then
116+ # There are junit files in artifacts so the script succeeded.
119117 junit::createJunitReportE2Esh 0 " ${ORIGINAL_ARTIFACTS} /junit.e2e-sh.xml"
120118 else
119+ # No junit files in artifacts so the script failed.
121120 junit::createJunitReportE2Esh 1 " ${ORIGINAL_ARTIFACTS} /junit.e2e-sh.xml" " ${ORIGINAL_ARTIFACTS} /${E2E_SH_LOG_FILE} "
122121 fi
123- # Cleanup the additionally written log file, the same content will be in build-log.txt.
122+ # Always cleanup the additionally written log file used for the junit report , the same content will be in build-log.txt.
124123 rm " ${ORIGINAL_ARTIFACTS} /${E2E_SH_LOG_FILE} "
125124}
126125
You can’t perform that action at this time.
0 commit comments