Skip to content

Commit 72aad95

Browse files
authored
fix issue of test pipelines (#25443)
* fix pipeline error * fix pipeline error
1 parent 426f0de commit 72aad95

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.azure-pipelines/util/live-test-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
targetType: inline
9595
script: |
9696
$azPackagesDir = New-Item -Name AzPreviewPackages -Path $(DataLocation) -ItemType Directory -Force
97-
$azPackagesFiles = Join-Path -Path $(Pipeline.Workspace) -ChildPath *.nupkg
97+
$azPackagesFiles = Get-ChildItem -Path "$(Pipeline.Workspace)" -Recurse -Filter "*.nupkg"
9898
Move-Item -Path $azPackagesFiles -Destination $azPackagesDir
9999
Get-ChildItem -LiteralPath $azPackagesDir
100100

.azure-pipelines/util/smoke-test-steps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
targetType: 'inline'
7777
script: |
7878
New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory"
79-
Get-ChildItem -Path "$(Pipeline.Workspace)" -Recurse -Filter "*.nupkg" | ForEach-Object { Copy-Item -Path $_.FullName -Destination "$(Pipeline.Workspace)\LocalRepo\" -Force }
79+
$fileList = Get-ChildItem -Path "$(Pipeline.Workspace)" -Recurse -Filter "*.nupkg"
80+
$fileList | ForEach-Object { Copy-Item -Path $_.FullName -Destination "$(Pipeline.Workspace)\LocalRepo\" -Force }
8081
Write-Host "List artifacts..."
8182
Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
8283

0 commit comments

Comments
 (0)