Hello,
I don't have find any indication on how to be able to retrieve generated build artifact in release pipeline to be deployed, with yaml file. Could you please explain how ?
Thank you
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@bertrandpons Thank you for the question.
Please refer to https://github.com/MicrosoftDocs/vsts-docs/issues/2341 for an extensive discussion on the subject.
@msebolt Thank you for your answer and the link. The thing is that I cannot retrieve my zip file contained in a specific artifact to be deployed with app service deployment task. I tried many combinations to be able to specify the right path to the zip package but I have not found the right way.
Is there a documentation or something to do this very simple step in yaml: publish artifact in build then retrieve its content in release pipeline task?
With the classic editor, it is straightforward!
Thank you
@msebolt well actually I have found a way that works:
I use the task PublishPipelineArtifact@1 on build side with the targetPath set to '$(Build.ArtifactStagingDirectory)'
Then on deployment side, I use the task DownloadPipelineArtifact@2 with buildType set to 'current' and downloadPath set to '$(Build.ArtifactStagingDirectory)'
I am glad you were able to resolve the problem.
You can also use publish and [download] (https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#download) macros instead of the complete tasks to the same effect.
Closing this issue now.