PowerShell/tools/releaseBuild/azureDevOps/templates/cloneToOfficialPath.yml
Travis Plunk 05f274898d
Move to ESRP signing for Windows files (#13988)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2020-11-05 13:28:40 -08:00

17 lines
588 B
YAML

steps:
- powershell: |
$dirSeparatorChar = [system.io.path]::DirectorySeparatorChar
$nativePath = "${dirSeparatorChar}PowerShell"
Write-Host "##vso[task.setvariable variable=PowerShellRoot]$nativePath"
if ((Test-Path "$nativePath")) {
Remove-Item -Path "$nativePath" -Force -Recurse -Verbose -ErrorAction ignore
}
else {
Write-Verbose -Verbose -Message "No cleanup required."
}
git clone --quiet $env:REPOROOT $nativePath
displayName: Clone PowerShell Repo to /PowerShell
errorActionPreference: silentlycontinue