mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-19 08:21:44 +00:00
fix vsix installation
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
"virtual_network_resource_group_name": "{{env `VNET_RESOURCE_GROUP`}}",
|
"virtual_network_resource_group_name": "{{env `VNET_RESOURCE_GROUP`}}",
|
||||||
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
||||||
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
||||||
"vm_size": "Standard_DS4_v2",
|
"vm_size": "Standard_D4_v2",
|
||||||
"run_scan_antivirus": "false",
|
"run_scan_antivirus": "false",
|
||||||
|
|
||||||
"root_folder": "C:",
|
"root_folder": "C:",
|
||||||
|
|||||||
@@ -169,11 +169,12 @@ function Start-DownloadWithRetry
|
|||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
[string] $Name,
|
[string] $Name,
|
||||||
[string] $DownloadPath = "${env:Temp}",
|
[string] $DownloadPath = "${env:Temp}",
|
||||||
[int] $retries = 20
|
[int] $Retries = 20
|
||||||
)
|
)
|
||||||
$FilePath = Join-Path $DownloadPath $Name
|
|
||||||
|
$FilePath = Join-Path -Path $DownloadPath -ChildPath $Name
|
||||||
#Default retry logic for the package.
|
#Default retry logic for the package.
|
||||||
while($retries -gt 0)
|
while ($retries -gt 0)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -183,20 +184,20 @@ function Start-DownloadWithRetry
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Write-Host "There is an error during package downloading"
|
Write-Host "There is an error during package downloading:`n $_"
|
||||||
$_
|
|
||||||
$retries--
|
$retries--
|
||||||
|
|
||||||
if ($retries -eq 0)
|
if ($retries -eq 0)
|
||||||
{
|
{
|
||||||
Write-Host "File can't be downloaded. Please try later or check that file exists by url: $Url"
|
Write-Host "File can't be downloaded. Please try later or check that file exists by url: $Url"
|
||||||
$_
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Waiting 30 seconds before retrying. Retries left: $retries"
|
Write-Host "Waiting 30 seconds before retrying. Retries left: $retries"
|
||||||
Start-Sleep -Seconds 30
|
Start-Sleep -Seconds 30
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $FilePath
|
return $FilePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user