Skip to content

Commit 5d8de06

Browse files
committed
Use Core Tools 4.0.7317
1 parent 70ba59a commit 5d8de06

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.4'
6565
$FUNC_CMDLET_NAME = "func"
66+
$CORE_TOOLS_VERSION = '4.0.7317'
6667

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

129116
$output = "$FUNC_CLI_DIRECTORY.zip"
130117
Invoke-RestMethod -Uri $coreToolsDownloadURL -OutFile $output

0 commit comments

Comments
 (0)