From 6bafaf29daf438040b7cd14d85817e5853cd9c0d Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 14 Apr 2026 11:16:54 +0800 Subject: [PATCH] ci: set upload timeout for uploading artifacts to S3 (#7958) * ci: set upload timeout for uploading artifacts to S3 Signed-off-by: liyang * Update upload-artifacts-to-s3.sh --------- Signed-off-by: liyang --- .github/scripts/upload-artifacts-to-s3.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/scripts/upload-artifacts-to-s3.sh b/.github/scripts/upload-artifacts-to-s3.sh index 1ddf32044b..9c92859e3b 100755 --- a/.github/scripts/upload-artifacts-to-s3.sh +++ b/.github/scripts/upload-artifacts-to-s3.sh @@ -38,6 +38,11 @@ function upload_artifacts() { curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ -F "file=@$file" \ + --max-time 3600 \ + --connect-timeout 20 \ + --retry 5 \ + --retry-delay 10 \ + --retry-max-time 3000 \ "$TARGET_URL" done } @@ -54,6 +59,11 @@ function update_version_info() { curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ -F "file=@latest-version.txt" \ + --max-time 3600 \ + --connect-timeout 20 \ + --retry 5 \ + --retry-delay 10 \ + --retry-max-time 3000 \ "$TARGET_URL" fi @@ -66,6 +76,11 @@ function update_version_info() { curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ -F "file=@latest-nightly-version.txt" \ + --max-time 3600 \ + --connect-timeout 20 \ + --retry 5 \ + --retry-delay 10 \ + --retry-max-time 3000 \ "$TARGET_URL" fi fi