mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Uses the correct env var on windows (#8800)
Based on the changes made to speed up az on ubuntu, we found that this is the correct env var to use.
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
$azureDevOpsCliConfigPath = 'C:\azureDevOpsCli'
|
$azureDevOpsCliConfigPath = 'C:\azureDevOpsCli'
|
||||||
# Store azure-devops-cli cache outside of the provisioning user's profile
|
# Store azure-devops-cli cache outside of the provisioning user's profile
|
||||||
[Environment]::SetEnvironmentVariable('AZURE_DEVOPS_EXT_CONFIG_DIR', $azureDevOpsCliConfigPath, [System.EnvironmentVariableTarget]::Machine)
|
[Environment]::SetEnvironmentVariable('AZ_DEVOPS_GLOBAL_CONFIG_DIR', $azureDevOpsCliConfigPath, [System.EnvironmentVariableTarget]::Machine)
|
||||||
# make variable to be available in the current session
|
# make variable to be available in the current session
|
||||||
${env:AZURE_DEVOPS_EXT_CONFIG_DIR} = $azureDevOpsCliConfigPath
|
${env:AZ_DEVOPS_GLOBAL_CONFIG_DIR} = $azureDevOpsCliConfigPath
|
||||||
|
|
||||||
$azureDevOpsCliCachePath = Join-Path $azureDevOpsCliConfigPath 'cache'
|
$azureDevOpsCliCachePath = Join-Path $azureDevOpsCliConfigPath 'cache'
|
||||||
$null = New-Item -ItemType 'Directory' -Path $azureDevOpsCliCachePath
|
$null = New-Item -ItemType 'Directory' -Path $azureDevOpsCliCachePath
|
||||||
|
|||||||
Reference in New Issue
Block a user