Skip to content

Commit 426f0de

Browse files
authored
change live tests and smoke test pipeline based on new Onebranch pipeline (#25436)
* change live tests and smoke test pipeline based on new Onebranch pipeline * change live tests and smoke test pipeline based on new Onebranch pipeline
1 parent 49943f6 commit 426f0de

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ jobs:
7070
definition: $(SignPipelineDefinitionId)
7171
buildVersionToDownload: 'latestFromBranch'
7272
branchName: 'refs/heads/internal/release'
73-
artifactName: 'artifacts'
73+
artifactName: $(ArtifactName)
7474
targetPath: $(Pipeline.Workspace)
75+
itemPattern: '**/artifacts/**'
7576

7677
- task: DownloadPipelineArtifact@2
7778
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), eq(variables['GalleryName'], 'Sign'), ne(variables['PipelineBuildId'], ''))
@@ -82,9 +83,9 @@ jobs:
8283
definition: $(SignPipelineDefinitionId)
8384
buildVersionToDownload: 'specific'
8485
pipelineId: $(PipelineBuildId)
85-
artifactName: 'artifacts'
86+
artifactName: $(ArtifactName)
8687
targetPath: $(Pipeline.Workspace)
87-
88+
itemPattern: '**/artifacts/**'
8889
- task: PowerShell@2
8990
condition: and(succeeded(), ne(variables['skipLatest'], 'true'), ne(variables['GalleryName'], 'PSGallery'))
9091
displayName: Copy artifacts to local repository

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
buildVersionToDownload: 'latest'
5555
artifactName: $(ArtifactName)
5656
targetPath: $(Pipeline.Workspace)
57+
itemPattern: '**/artifacts/**'
5758

5859
- task: DownloadPipelineArtifact@2
5960
condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), ne(variables['PipelineId'], ''))
@@ -66,6 +67,7 @@ jobs:
6667
pipelineId: $(PipelineId)
6768
artifactName: '$(ArtifactName)'
6869
targetPath: '$(Pipeline.Workspace)'
70+
itemPattern: '**/artifacts/**'
6971

7072
- task: PowerShell@2
7173
condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
@@ -74,7 +76,7 @@ jobs:
7476
targetType: 'inline'
7577
script: |
7678
New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory"
77-
Copy-Item -Path "$(Pipeline.Workspace)\\*.nupkg" -Destination "$(Pipeline.Workspace)\\LocalRepo\\"
79+
Get-ChildItem -Path "$(Pipeline.Workspace)" -Recurse -Filter "*.nupkg" | ForEach-Object { Copy-Item -Path $_.FullName -Destination "$(Pipeline.Workspace)\LocalRepo\" -Force }
7880
Write-Host "List artifacts..."
7981
Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
8082

0 commit comments

Comments
 (0)