Dump out artifacts (a different approach).
@@ -17,14 +17,13 @@ jobs:
displayName: Build packages
- ${{ each artifact in parameters.Artifacts }}:
- pwsh: |
- $artifactsToStage = Get-ChildItem sdk/${{parameters.ServiceDirectory}}/${{artifact.name}}/build/repo/**/${{artifact.name}} | Where-Object -FilterScript { $_.Name -match "(jar|pom|aar)$" }
- Write-Host $artifactsToStage
- $stagingLocation = New-Item -Type Directory -Path $(Build.ArtifactStagingDirectory) -Name ${{artifact.name}}
- $artifactsToStage | Copy-Item -Destination $stagingLocation
+ Get-ChildItem sdk/${{parameters.ServiceDirectory}}/${{artifact.name}}/build/repo/**/${{artifact.name}}
+ # $stagingLocation = New-Item -Type Directory -Path $(Build.ArtifactStagingDirectory) -Name ${{artifact.name}}
+ # $artifactsToStage | Copy-Item -Destination $stagingLocation
displayName: Stage ${{artifact.name}} for upload
- - publish: $(Build.ArtifactStagingDirectory)
- artifact: packages
- displayName: Upload artifacts
+ # - publish: $(Build.ArtifactStagingDirectory)
+ # artifact: packages
+ # displayName: Upload artifacts
- job: 'Analyze'
