Skip to content

Commit 7f08a00

Browse files
authored
Add CORE_TOOLS_URL env (Azure#236)
1 parent 661a419 commit 7f08a00

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup-e2e-tests.ps1

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@ Write-Host "Deleting Functions Core Tools if exists...."
2323
Remove-Item -Force ./Azure.Functions.Cli.zip -ErrorAction Ignore
2424
Remove-Item -Recurse -Force ./Azure.Functions.Cli -ErrorAction Ignore
2525

26+
if (-not (Test-Path env:CORE_TOOLS_URL))
27+
{
28+
$env:CORE_TOOLS_URL = "https://functionsclibuilds.blob.core.windows.net/builds/2/latest/Azure.Functions.Cli.win-x86.zip"
29+
}
30+
2631
Write-Host "Downloading Functions Core Tools...."
2732
Invoke-RestMethod -Uri 'https://functionsclibuilds.blob.core.windows.net/builds/2/latest/version.txt' -OutFile version.txt
2833
Write-Host "Using Functions Core Tools version: $(Get-Content -Raw version.txt)"
2934
Remove-Item version.txt
3035

31-
$url = "https://functionsclibuilds.blob.core.windows.net/builds/2/latest/Azure.Functions.Cli.win-x86.zip"
3236
$output = "$currDir\Azure.Functions.Cli.zip"
3337
$wc = New-Object System.Net.WebClient
34-
$wc.DownloadFile($url, $output)
38+
$wc.DownloadFile($env:CORE_TOOLS_URL, $output)
3539

3640
Write-Host "Extracting Functions Core Tools...."
3741
Expand-Archive ".\Azure.Functions.Cli.zip" -DestinationPath ".\Azure.Functions.Cli"

0 commit comments

Comments
 (0)