Skip to content

Commit fd8e5d3

Browse files
committed
fix: ci powershell script for deployment is not using powershell core leading to mapping issues on linux agents
Signed-off-by: Vincent Biret <[email protected]>
1 parent 52a7438 commit fd8e5d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ extends:
265265
pool:
266266
vmImage: ubuntu-latest
267267
steps:
268-
- powershell: |
268+
- pwsh: |
269269
$fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
270270
foreach($fileName in $fileNames) {
271271
if(Test-Path $fileName) {
272-
rm $fileName -Verbose
272+
Remove-Item $fileName -Verbose
273273
}
274274
}
275275
displayName: remove other nupkgs to avoid duplication
@@ -365,7 +365,7 @@ extends:
365365
inlineScript: |
366366
az acr login --name $(REGISTRY)
367367
368-
- powershell: |
368+
- pwsh: |
369369
$content = [XML](Get-Content $(Pipeline.Workspace)/Directory.Build.props)
370370
Write-Host "XML loaded, finding version..."
371371

0 commit comments

Comments
 (0)