From 461675924279417d5661d52540474133bbdab125 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Tue, 18 Aug 2020 11:25:02 -0700 Subject: [PATCH] Create the folder before copying the global tools --- tools/releaseBuild/azureDevOps/templates/nuget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/releaseBuild/azureDevOps/templates/nuget.yml b/tools/releaseBuild/azureDevOps/templates/nuget.yml index 5a18354b91e..138050f5c60 100644 --- a/tools/releaseBuild/azureDevOps/templates/nuget.yml +++ b/tools/releaseBuild/azureDevOps/templates/nuget.yml @@ -164,9 +164,9 @@ jobs: artifactPath: '$(System.ArtifactsDirectory)\signed' - powershell: | - if (-not (Test-Path "$(System.ArtifactsDirectory)\signed")) + if (-not (Test-Path "$(System.ArtifactsDirectory)\signed\globaltool")) { - $null = New-Item -Path "$(System.ArtifactsDirectory)\signed\globaltool" -ItemType Directory + $null = New-Item -Path "$(System.ArtifactsDirectory)\signed\globaltool" -ItemType Directory -Force } Move-Item -Path "$(System.ArtifactsDirectory)\signed\PowerShell.*" -Destination "$(System.ArtifactsDirectory)\signed\globaltool" -Force