Fix escaping arguments for PowerShell tasks (#13918) ***NO_CI***

## Description

Fixing error blocking PRs due to surprise ADO policy change:

```
Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backtick (`). More information is available here: https://aka.ms/ado/75787
```

### Type of Change
_Erase all that don't apply._
- Bug fix (non-breaking change which fixes an issue)

### Why
Unblock pipelines.

### What
Fixed argument escaping.

## Screenshots
N/A

## Testing
N/A

## Changelog
Should this change be included in the release notes: _no_
This commit is contained in:
Jon Thysell 2024-10-03 10:18:30 -07:00
Родитель 4e968a448c
Коммит ac43674eda
2 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@ -139,12 +139,9 @@ jobs:
New-Item -Path '$(Build.StagingDirectory)\DebugTestCrashDumps' -ItemType Directory
displayName: Set CrashDumpRootPath
- task: PowerShell@2
- powershell: |
& $(Build.SourcesDirectory)\.ado\scripts\RunProcDump.ps1 -ProcDumpArgs @("-mm", "-i", "$(CrashDumpRootPath)") -ProcDumpInstallPath "$(ProcDumpPath)" -Verbose
displayName: Setup ProcDump as AeDebug
inputs:
targetType: filePath # filePath | inline
filePath: $(Build.SourcesDirectory)\.ado\scripts\RunProcDump.ps1
arguments: "-ProcDumpArgs @('-mm', '-i', '$(CrashDumpRootPath)') -ProcDumpInstallPath '$(ProcDumpPath)' -Verbose"
# This step loose-file-deploys the UWP Playground app and uses it as an RNW host for a series
# of debug feature tests. In the future, these tests should be performed against a host app

Просмотреть файл

@ -56,9 +56,7 @@ steps:
Write-Host "##vso[task.setvariable variable=ProcDumpPath]$(Build.StagingDirectory)\Procdump"
displayName: Set ProcDumpPath
- task: PowerShell@2
- powershell: |
& $(Build.SourcesDirectory)\.ado\scripts\RunProcDump.ps1 -ProcDumpArgs @("-mm", "-i", "$(CrashDumpRootPath)") -ProcDumpInstallPath "$(ProcDumpPath)" -Verbose
displayName: Setup ProcDump as AeDebug
inputs:
targetType: filePath # filePath | inline
filePath: $(Build.SourcesDirectory)\.ado\scripts\RunProcDump.ps1
arguments: "-ProcDumpArgs @('-mm', '-i', '$(CrashDumpRootPath)') -ProcDumpInstallPath '$(ProcDumpPath)' -Verbose"