From b3e5d58e1fd3c808de182440f07d3f47d99ee09d Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:36:41 -0800 Subject: [PATCH] Fix `Copy Packages` step (#31790) Resolve issue present [here.](https://dev.azure.com/azure-sdk/public/_build/results?buildId=4332852&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=25f5bbca-262e-5e46-5cac-451228cdef01) --- eng/pipelines/templates/steps/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/pipelines/templates/steps/build.yml b/eng/pipelines/templates/steps/build.yml index d5d882d8586..375539e28f2 100644 --- a/eng/pipelines/templates/steps/build.yml +++ b/eng/pipelines/templates/steps/build.yml @@ -84,8 +84,7 @@ steps: ServiceDirectory: ${{parameters.ServiceDirectory}} - pwsh: | - $artifacts = Get-ChildItem -Recurse -Force "$(Build.ArtifactStagingDirectory)/PackageInfo/*.json" ` - | ForEach-Object { $_.Name.Replace(".json", "") } + $artifacts = "$(ArtifactPackageNames)".Split(",") foreach ($artifact in $artifacts) {