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

Add retry strategy during manifest download for Validate manifest workflow runs
pull/40/head
MaksimZhukov 3 years ago committed by GitHub
commit e71d476320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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