1
Fork 0

ci: retry s3 upload on azure if it fails

This commit is contained in:
Pietro Albini 2019-06-03 11:54:36 +02:00
parent c57ed9d947
commit 80df64b7d4
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C

View file

@ -118,6 +118,7 @@ steps:
# bucket. # bucket.
- bash: | - bash: |
set -e set -e
source src/ci/shared.sh
if [ "$AGENT_OS" = "Linux" ]; then if [ "$AGENT_OS" = "Linux" ]; then
rm -rf obj/build/dist/doc rm -rf obj/build/dist/doc
upload_dir=obj/build/dist upload_dir=obj/build/dist
@ -130,7 +131,7 @@ steps:
if [ "$DEPLOY_ALT" == "1" ]; then if [ "$DEPLOY_ALT" == "1" ]; then
deploy_dir=rustc-builds-alt deploy_dir=rustc-builds-alt
fi fi
aws s3 cp --no-progress --recursive --acl public-read ./$upload_dir s3://$DEPLOY_BUCKET/$deploy_dir/$BUILD_SOURCEVERSION retry aws s3 cp --no-progress --recursive --acl public-read ./$upload_dir s3://$DEPLOY_BUCKET/$deploy_dir/$BUILD_SOURCEVERSION
env: env:
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY) AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1'))) condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1')))