From 00cb2e40e304100da7817325eb0a81c6b8e33ecd Mon Sep 17 00:00:00 2001 From: Max Weber Date: Tue, 2 Jun 2020 21:36:51 -0600 Subject: [PATCH] package: retry failed uploads --- build_manifest.sh | 2 +- build_plugin.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_manifest.sh b/build_manifest.sh index 3a19417a9..3e0989e26 100755 --- a/build_manifest.sh +++ b/build_manifest.sh @@ -70,7 +70,7 @@ perl -e "print pack('N', -s \"$MANIFEST.sig\")" > "$MANIFEST.out" cat "$MANIFEST.sig" >> "$MANIFEST.out" cat "$MANIFEST" >> "$MANIFEST.out" -curl --fail \ +curl --fail --retry 5 --retry-connrefused \ --user "$REPO_CREDS" \ --upload-file "$MANIFEST.out" "$REPO_ROOT/$RUNELITE_VERSION/manifest.js" diff --git a/build_plugin.sh b/build_plugin.sh index 9ba646eb3..3902cf464 100755 --- a/build_plugin.sh +++ b/build_plugin.sh @@ -98,7 +98,7 @@ if [ -e "icon.png" ]; then ICON_UPLOAD=("--upload-file" "icon.png" "$LOCATION.png") fi -curl --fail \ +curl --fail --retry 5 --retry-connrefused \ --user "$REPO_CREDS" \ --upload-file "$BUILDDIR/plugin.manifest" "$LOCATION.manifest" \ --upload-file "$BUILDDIR/plugin.jar" "$LOCATION.jar" \