Skip to content

Commit 80df64b

Browse files
committed
ci: retry s3 upload on azure if it fails
1 parent c57ed9d commit 80df64b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.azure-pipelines/steps/run.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ steps:
118118
# bucket.
119119
- bash: |
120120
set -e
121+
source src/ci/shared.sh
121122
if [ "$AGENT_OS" = "Linux" ]; then
122123
rm -rf obj/build/dist/doc
123124
upload_dir=obj/build/dist
@@ -130,7 +131,7 @@ steps:
130131
if [ "$DEPLOY_ALT" == "1" ]; then
131132
deploy_dir=rustc-builds-alt
132133
fi
133-
aws s3 cp --no-progress --recursive --acl public-read ./$upload_dir s3://$DEPLOY_BUCKET/$deploy_dir/$BUILD_SOURCEVERSION
134+
retry aws s3 cp --no-progress --recursive --acl public-read ./$upload_dir s3://$DEPLOY_BUCKET/$deploy_dir/$BUILD_SOURCEVERSION
134135
env:
135136
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
136137
condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1')))

0 commit comments

Comments
 (0)