Skip to content

Commit c7f3569

Browse files
committed
Use Core Tools 4.0.7317
1 parent c3b24e9 commit c7f3569

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

test/E2E/Start-E2ETest.ps1

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function NewTaskHubName
6363
$FUNC_RUNTIME_VERSION = '4'
6464
$POWERSHELL_VERSION = '7.2'
6565
$FUNC_CMDLET_NAME = "func"
66+
$CORE_TOOLS_VERSION = '4.0.7317'
6667

6768
# Set the appropriate environment variables
6869
$taskHubName = NewTaskHubName -Length 45
@@ -103,23 +104,9 @@ Remove-Item -Recurse -Force $FUNC_CLI_DIRECTORY -ErrorAction Ignore
103104
if (-not $SkipCoreToolsDownload)
104105
{
105106
Write-Host "Downloading Core Tools because SkipCoreToolsDownload switch parameter is not present..."
106-
$coreToolsDownloadURL = $null
107-
if ($UseCoreToolsBuildFromIntegrationTests)
108-
{
109-
$coreToolsDownloadURL = "https://functionsintegclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest/Azure.Functions.Cli.$os-$arch.zip"
110-
$env:CORE_TOOLS_URL = "https://functionsintegclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest"
111-
}
112-
else
113-
{
114-
$coreToolsDownloadURL = "https://functionsclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest/Azure.Functions.Cli.$os-$arch.zip"
115-
if (-not $env:CORE_TOOLS_URL)
116-
{
117-
$env:CORE_TOOLS_URL = "https://functionsclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest"
118-
}
119-
}
120-
121-
$version = Invoke-RestMethod -Uri "$env:CORE_TOOLS_URL/version.txt"
122-
Write-Host "Downloading Functions Core Tools (Version: $version)..."
107+
108+
$coreToolsDownloadURL = "https://github.com/Azure/azure-functions-core-tools/releases/download/$CORE_TOOLS_VERSION/Azure.Functions.Cli.$os-$arch.$CORE_TOOLS_VERSION.zip"
109+
Write-Host "Downloading Functions Core Tools (Version: $CORE_TOOLS_VERSION)..."
123110

124111
$output = "$FUNC_CLI_DIRECTORY.zip"
125112
Invoke-RestMethod -Uri $coreToolsDownloadURL -OutFile $output

0 commit comments

Comments
 (0)