mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
4ac98c7a09
|
@ -706,18 +706,22 @@ set -e
|
|||
|
||||
if [ -n "${CPACK}" ] && [ -n "${TARGET_DIR}" ]; then
|
||||
${PACKAGE_MAKE} clean_packages || exit 1
|
||||
# while test "${RETRY_N_TIMES}" -gt 0; do
|
||||
${PACKAGE_MAKE} packages
|
||||
echo "Package built status: $?"
|
||||
#&& break
|
||||
#RETRY_N_TIMES=$((RETRY_N_TIMES - 1))
|
||||
#echo "failed to build packages - waiting 5 mins maybe the situation gets better?"
|
||||
#sleep 600
|
||||
#done
|
||||
#if test "${RETRY_N_TIMES}" -eq 0; then
|
||||
#echo "building packages failed terminally"
|
||||
#exit 1
|
||||
#fi
|
||||
|
||||
set +e
|
||||
WAIT_ON_FAIL=$((RETRY_N_TIMES - 1))
|
||||
while test "${RETRY_N_TIMES}" -gt 0; do
|
||||
${PACKAGE_MAKE} packages && break
|
||||
RETRY_N_TIMES=$((RETRY_N_TIMES - 1))
|
||||
if test "${WAIT_ON_FAIL}" -gt 0; then
|
||||
echo "failed to build packages - waiting 5 mins maybe the situation gets better?"
|
||||
sleep 600
|
||||
fi
|
||||
done
|
||||
if test "${RETRY_N_TIMES}" -eq 0; then
|
||||
echo "building packages failed terminally"
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
fi
|
||||
# and install
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ Function ${un}WaitForServiceDown
|
|||
${EndIf}
|
||||
IntOp $R0 $R0 + 1
|
||||
Goto try_again
|
||||
Sleep 1000
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
|
Loading…
Reference in New Issue