1
0
Fork 0

disable build-retry

This commit is contained in:
Wilfried Goesgens 2017-06-06 22:23:26 +02:00
parent d1ecba0d30
commit eb6cea75ae
1 changed files with 12 additions and 10 deletions

View File

@ -706,16 +706,18 @@ 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 && 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
# 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
fi
# and install