From fd8e5d3cc9d281bc818817206d2ecd47f367113c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 10 Jun 2025 09:34:27 -0400 Subject: [PATCH 1/2] fix: ci powershell script for deployment is not using powershell core leading to mapping issues on linux agents Signed-off-by: Vincent Biret --- .azure-pipelines/ci-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 0c89f3fdc..3de7919a0 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -265,11 +265,11 @@ extends: pool: vmImage: ubuntu-latest steps: - - powershell: | + - pwsh: | $fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg" foreach($fileName in $fileNames) { if(Test-Path $fileName) { - rm $fileName -Verbose + Remove-Item $fileName -Verbose } } displayName: remove other nupkgs to avoid duplication @@ -365,7 +365,7 @@ extends: inlineScript: | az acr login --name $(REGISTRY) - - powershell: | + - pwsh: | $content = [XML](Get-Content $(Pipeline.Workspace)/Directory.Build.props) Write-Host "XML loaded, finding version..." From 502830aabd72a15d6b9090c2de535153b9d81664 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 10 Jun 2025 12:48:30 -0400 Subject: [PATCH 2/2] fix: docker image caching to avoid throttling Signed-off-by: Vincent Biret --- .azure-pipelines/ci-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 3de7919a0..34b37bc2e 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -435,7 +435,7 @@ extends: condition: eq(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH']) - script: | - docker run --privileged --rm tonistiigi/binfmt --install all + docker run --privileged --rm msgraphprodregistry.azurecr.io/tonistiigi/binfmt --install all displayName: "Enable multi-platform builds" - script: |