parameters:
  artifactPath:
  artifactFilter: '*'
  condition: succeeded()
  artifactName: finalResults

steps:
  - powershell: |
        Get-ChildItem -Path '${{ parameters.artifactPath }}' -Recurse -File -filter '${{ parameters.artifactFilter }}' -ErrorAction SilentlyContinue |
            Select-Object -ExpandProperty FullName |
                ForEach-Object {
                    Write-Host "##vso[artifact.upload containerfolder=${{ parameters.artifactName }};artifactname=${{ parameters.artifactName }}]$_"
                }
    displayName: Upload ${{ parameters.artifactName }} Artifacts ${{ parameters.artifactFilter }} from ${{ parameters.artifactPath }}
    condition: ${{ parameters.condition }}
