parameters: artifacts: 'target/release' name: '' steps: - bash: | set -ex dst=$BUILD_ARTIFACTSTAGINGDIRECTORY rm -f ${{ parameters.artifacts }}/pitufo*.d rm -f ${{ parameters.artifacts }}/pitufo*.pdb cp ${{ parameters.artifacts }}/pitufo* $dst/ displayName: Create artifacts - task: PublishPipelineArtifact@0 inputs: artifactName: ${{ parameters.name }} targetPath: '$(Build.ArtifactStagingDirectory)'