HBASE-15119 Include git SHA in check_compatibility reports

This commit is contained in:
Nick Dimiduk 2016-01-16 15:44:07 -08:00
parent df36178062
commit 55bb5ff7fb
1 changed files with 5 additions and 1 deletions

View File

@ -188,6 +188,8 @@ for ref in 1 2; do
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2 echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
exit 2 exit 2
fi fi
# grab sha for future reference
SHA[${ref}]=$(git rev-parse --short HEAD)
popd > /dev/null popd > /dev/null
fi fi
@ -207,6 +209,7 @@ for ref in 1 2; do
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2 echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
exit 2 exit 2
fi fi
SHA[${ref}]=$(git rev-parse --short HEAD)
popd > /dev/null popd > /dev/null
done done
@ -259,7 +262,8 @@ fi
# Generate command line arguments for Java ACC. # Generate command line arguments for Java ACC.
JAVA_ACC_COMMAND+=(-l HBase) JAVA_ACC_COMMAND+=(-l HBase)
JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]} -v2 ${COMMIT[2]}) JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]}${SHA[1]+"/${SHA[1]}"})
JAVA_ACC_COMMAND+=(-v2 ${COMMIT[2]}${SHA[2]+"/${SHA[2]}"})
JAVA_ACC_COMMAND+=(-d1 ${JARS[1]} -d2 ${JARS[2]}) JAVA_ACC_COMMAND+=(-d1 ${JARS[1]} -d2 ${JARS[2]})
JAVA_ACC_COMMAND+=(-report-path \ JAVA_ACC_COMMAND+=(-report-path \
${SCRIPT_DIRECTORY}/target/compatibility/report/${COMMIT[1]}_${COMMIT[2]}_compat_report.html) ${SCRIPT_DIRECTORY}/target/compatibility/report/${COMMIT[1]}_${COMMIT[2]}_compat_report.html)