Merge pull request #38 from nikolai-frolov/add-retry-strategy

Add retry strategy during manifest download for Validate manifest workflow runs
This commit is contained in:
MaksimZhukov
2021-10-06 17:28:08 +03:00
committed by GitHub

View File

@@ -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