Add retry strategy

pull/38/head
Nikolay Frolov 3 years ago
parent fb0eac418a
commit 7114ad2b94

@ -40,7 +40,7 @@ function Test-DownloadUrl {
Write-Host "Downloading manifest json from '$ManifestUrl'..."
try {
$manifestResponse = Invoke-WebRequest -Method Get -Uri $ManifestUrl -Headers $webRequestHeaders
$manifestResponse = Invoke-WebRequest -Method Get -Uri $ManifestUrl -Headers $webRequestHeaders -MaximumRetryCount 5 -RetryIntervalSec 10
} catch {
Publish-Error "Unable to download manifest json from '$ManifestUrl'" $_
exit 1

Loading…
Cancel
Save