diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-06-03 19:31:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 19:31:28 -0700 |
| commit | 4fb225608532e9fb2fd2f5f1dbe9ec092cdc7c93 (patch) | |
| tree | d4ccfc78c9043c6c136dc2ec72a3f005366564a3 /scripts/azure-pipelines/windows/initialize-environment.ps1 | |
| parent | 20e6626d8758f5e46c1777e3e1ff4d98ed5d2e7a (diff) | |
| download | vcpkg-4fb225608532e9fb2fd2f5f1dbe9ec092cdc7c93.tar.gz vcpkg-4fb225608532e9fb2fd2f5f1dbe9ec092cdc7c93.zip | |
[vcpkg] Allow CI to pass in all relevant directories and remove use of symbolic links (#11483)
Diffstat (limited to 'scripts/azure-pipelines/windows/initialize-environment.ps1')
| -rw-r--r-- | scripts/azure-pipelines/windows/initialize-environment.ps1 | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/scripts/azure-pipelines/windows/initialize-environment.ps1 b/scripts/azure-pipelines/windows/initialize-environment.ps1 index 4211a228a..4a252df49 100644 --- a/scripts/azure-pipelines/windows/initialize-environment.ps1 +++ b/scripts/azure-pipelines/windows/initialize-environment.ps1 @@ -22,13 +22,6 @@ Param( $StorageAccountName = $env:StorageAccountName
$StorageAccountKey = $env:StorageAccountKey
-function Remove-DirectorySymlink {
- Param([string]$Path)
- if (Test-Path $Path) {
- [System.IO.Directory]::Delete($Path, $true)
- }
-}
-
Write-Host 'Setting up archives mount'
if (-Not (Test-Path W:)) {
net use W: "\\$StorageAccountName.file.core.windows.net\archives" /u:"AZURE\$StorageAccountName" $StorageAccountKey
@@ -52,40 +45,3 @@ if( Test-Path D:\downloads\tools\msys2 ) Write-Host "removing previously installed msys2"
Remove-Item D:\downloads\tools\msys2 -Recurse -Force
}
-
-Write-Host 'Setting up archives path...'
-if ([string]::IsNullOrWhiteSpace($ForceAllPortsToRebuildKey))
-{
- $archivesPath = 'W:\'
-}
-else
-{
- $archivesPath = "W:\force\$ForceAllPortsToRebuildKey"
- if (-Not (Test-Path $fullPath)) {
- Write-Host 'Creating $archivesPath'
- mkdir $archivesPath
- }
-}
-
-Write-Host "Linking archives => $archivesPath"
-if (-Not (Test-Path archives)) {
- cmd /c "mklink /D archives $archivesPath"
-}
-
-Write-Host 'Linking installed => E:\installed'
-if (-Not (Test-Path E:\installed)) {
- mkdir E:\installed
-}
-
-if (-Not (Test-Path installed)) {
- cmd /c "mklink /D installed E:\installed"
-}
-
-Write-Host 'Linking downloads => D:\downloads'
-if (-Not (Test-Path D:\downloads)) {
- mkdir D:\downloads
-}
-
-if (-Not (Test-Path downloads)) {
- cmd /c "mklink /D downloads D:\downloads"
-}
|
