0
votes

Basically, is it possible with Release Pipeline to collect all the build artifacts configured for the pipeline and download them as single .zip file? I don't want them published to IIS or Azure. Just a button where I can download the build artifacts.

I've looked at Download Pipeline Artifact task but not sure if this will work for me.

1
Is the reply helpful? Is your issue solved?Cece Dong - MSFT

1 Answers

1
votes

Yes it is. It depends how you are publishing your pipeline artifacts. In the build process zip of the necessary files and publish like:

  - task: ArchiveFiles@2
    displayName: 'Archive $(Build.ArtifactStagingDirectory)'
    inputs:
      rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
  - task: PublishPipelineArtifact@1
    displayName: 'Publish Artifact: drop'
    inputs:
      artifact: drop
      targetPath: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip

This will then be availabe in the Pipeline run as a published artifact:

enter image description here

Afterwards your artifact will look like:

enter image description here

Of course either this would be added as a step or would need to extract as part of your YAML pipeline.