File tree Expand file tree Collapse file tree
hadoop-ozone/dev-support/checks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626# - $REPORT_FILE should be defined
2727# - Maven output should be saved in $REPORT_DIR/output.log
2828
29- # script failed, but report file is empty (does not reflect failure)
30- if [[ ${rc} -ne 0 ]] && [[ ! -s " ${REPORT_FILE} " ]]; then
31- # do we know what to look for?
29+ if [[ ! -s " ${REPORT_FILE} " ]]; then
30+ # check if there are errors in the log
3231 if [[ -n " ${ERROR_PATTERN:- } " ]]; then
3332 grep -m25 " ${ERROR_PATTERN} " " ${REPORT_DIR} /output.log" > " ${REPORT_FILE} "
3433 fi
35- if [[ ! -s " ${REPORT_FILE} " ]]; then
34+ # script failed, but report file is empty (does not reflect failure)
35+ if [[ ${rc} -ne 0 ]] && [[ ! -s " ${REPORT_FILE} " ]]; then
3636 echo " Unknown failure, check output.log" > " ${REPORT_FILE} "
3737 fi
3838fi
Original file line number Diff line number Diff line change 4040if [[ " ${FAIL_FAST} " == " true" ]]; then
4141 MAVEN_OPTIONS=" ${MAVEN_OPTIONS} --fail-fast -Dsurefire.skipAfterFailureCount=1"
4242else
43- MAVEN_OPTIONS=" ${MAVEN_OPTIONS} --fail-at-end "
43+ MAVEN_OPTIONS=" ${MAVEN_OPTIONS} --fail-never "
4444fi
4545
4646# apply module access args (for Java 9+)
@@ -50,8 +50,10 @@ if [[ -f hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh ]]; then
5050 ozone_java_setup
5151fi
5252
53+ mvn ${MAVEN_OPTIONS} clean
54+
5355if [[ ${ITERATIONS} -gt 1 ]] && [[ ${OZONE_REPO_CACHED} == " false" ]]; then
54- mvn ${MAVEN_OPTIONS} -DskipTests clean install
56+ mvn ${MAVEN_OPTIONS} -DskipTests install
5557fi
5658
5759REPORT_DIR=${OUTPUT_DIR:- " $DIR /../../../target/${CHECK} " }
@@ -105,5 +107,5 @@ if [[ "${OZONE_WITH_COVERAGE}" == "true" ]]; then
105107 mvn -B -N jacoco:merge -Djacoco.destFile=$REPORT_DIR /jacoco-combined.exec -Dscan=false
106108fi
107109
108- ERROR_PATTERN=" \[ERROR\] "
110+ ERROR_PATTERN=" BUILD FAILURE "
109111source " ${DIR} /_post_process.sh"
You can’t perform that action at this time.
0 commit comments