Start-FileDownload retry mechanism

matt_mckinstry's Avatar

matt_mckinstry

15 Mar, 2019 02:05 PM

We've been getting some build failures with Start-FileDownload failing. The remote name could not be resolved: 'storage.googleapis.com'

Being in the cloud an all, it would be nice if the Start-FileDownload cmdlet provided a configurable retry mechanism to handle temporary connectivity issues.

Say an extra parameter -MaxRetries of type int. It could default to 1 when excluded

  1. Support Staff 1 Posted by Owen McDonnell on 15 Mar, 2019 04:34 PM

    Owen McDonnell's Avatar

    You could use appveyor-retry command. Something like this...

    - cmd: appveyor-retry powershell Start-FileDownload <your-url>
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Mar, 2019 01:15 PM
20 Mar, 2019 11:09 AM
20 Mar, 2019 10:37 AM
20 Mar, 2019 09:01 AM
20 Mar, 2019 08:51 AM

 

20 Mar, 2019 02:33 AM
19 Mar, 2019 06:21 PM
19 Mar, 2019 06:03 PM
19 Mar, 2019 05:22 PM
19 Mar, 2019 05:08 PM
19 Mar, 2019 05:00 PM