diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-06-03 11:54:36 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2019-06-03 11:54:36 +0200 |
| commit | 80df64b7d4a7718d4c5ece9c627e95cfd6084bce (patch) | |
| tree | 3ee098e3ca59dcb70f60c56444b44008a6836d67 | |
| parent | c57ed9d9478dcd12c854a0ef4e83c7f384ade060 (diff) | |
| download | rust-80df64b7d4a7718d4c5ece9c627e95cfd6084bce.tar.gz rust-80df64b7d4a7718d4c5ece9c627e95cfd6084bce.zip | |
ci: retry s3 upload on azure if it fails
| -rw-r--r-- | .azure-pipelines/steps/run.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.azure-pipelines/steps/run.yml b/.azure-pipelines/steps/run.yml index e7c6235a504..cfa28a6a1d7 100644 --- a/.azure-pipelines/steps/run.yml +++ b/.azure-pipelines/steps/run.yml @@ -118,6 +118,7 @@ steps: # bucket. - bash: | set -e + source src/ci/shared.sh if [ "$AGENT_OS" = "Linux" ]; then rm -rf obj/build/dist/doc upload_dir=obj/build/dist @@ -130,7 +131,7 @@ steps: if [ "$DEPLOY_ALT" == "1" ]; then deploy_dir=rustc-builds-alt 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: AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY) condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1'))) |
