Browse Source
CI: rework way how upload will be retried
* Allow 3 attempts for uploading.
* Add 30 second delay between attempts.
emacs-27
Leonid Plyushch
6 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
8 additions and
4 deletions
-
scripts/build/ci/cirrus-ci_dispatcher.sh
|
|
@ -106,9 +106,13 @@ if ! $DO_UPLOAD; then |
|
|
|
|
|
|
|
./build-package.sh -a "$TERMUX_ARCH" -I $PACKAGE_NAMES |
|
|
|
else |
|
|
|
echo "[*] Uploading packages to Bintray:" |
|
|
|
if ! ./scripts/package_uploader.sh -p "${PWD}/debs" $PACKAGE_NAMES; then |
|
|
|
echo "[*] Uploading packages to Bintray (retry):" |
|
|
|
./scripts/package_uploader.sh -p "${PWD}/debs" $PACKAGE_NAMES |
|
|
|
for attempt in 1 2 3; do |
|
|
|
echo "[*] Uploading packages to Bintray:" |
|
|
|
if ./scripts/package_uploader.sh -p "${PWD}/debs" $PACKAGE_NAMES; then |
|
|
|
break |
|
|
|
else |
|
|
|
echo "[!] Failure, retrying in 30 seconds..." |
|
|
|
sleep 30 |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|