mirror of
https://github.com/actions/runner-images.git
synced 2026-01-05 09:44:38 +08:00
[Windows] add retries in toolset installation (#7025)
This commit is contained in:
@@ -32,13 +32,13 @@ Function Install-Asset {
|
||||
}
|
||||
|
||||
# Get toolcache content from toolset
|
||||
$ToolsToInstall = @("Python", "Node", "Boost", "Go")
|
||||
$ToolsToInstall = @("Python", "Node", "Go")
|
||||
|
||||
$tools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object {$ToolsToInstall -contains $_.Name}
|
||||
$tools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object { $ToolsToInstall -contains $_.Name }
|
||||
|
||||
foreach ($tool in $tools) {
|
||||
# Get versions manifest for current tool
|
||||
$assets = Invoke-RestMethod $tool.url
|
||||
$assets = Invoke-SBWithRetry -Command { Invoke-RestMethod $tool.url }
|
||||
|
||||
# Get github release asset for each version
|
||||
foreach ($toolVersion in $tool.versions) {
|
||||
|
||||
Reference in New Issue
Block a user