.NET pipelines are duplicating the artifact directory at random times. When we run the .net pipeline sometimes it generates artifact twice which causes deployment failure. It happens sometimes and then takes few hours to resolve.
- task: PublishPipelineArtifact@1
displayName: Publish Pipeline Artifact
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
Artifact: 'Artifactname'
publishLocation: 'pipeline'
This is publish artifact task we are using.
I was not able to recreate the issue. However need to know if this something known.