ci: set upload timeout for uploading artifacts to S3 (#7958)

* ci: set upload timeout for uploading artifacts to S3

Signed-off-by: liyang <daviderli614@gmail.com>

* Update upload-artifacts-to-s3.sh

---------

Signed-off-by: liyang <daviderli614@gmail.com>
This commit is contained in:
liyang
2026-04-14 11:16:54 +08:00
committed by GitHub
parent e3f7ea8783
commit 6bafaf29da

View File

@@ -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