azure-devopsazure-pipelinesazure-pipelines-yamlazure-artifacts

How can I download an Azure Artifact (not build artifact) in a Azure Pipeline (YAML)


Is there a way to download an Azure Artifact into a Azure Pipeline? I see there's way to download a Build Artifact, however I am not looking for this. I push an Azure Artifact and need it in my pipeline.


Solution

  • Is there a way to download an Azure Artifact into a Azure Pipeline?

    Yes. You can use the Download Package task to download the packages in Azure Artifacts.

    Here is an example:

    - task: DownloadPackage@1
      inputs:
        packageType: 'nuget'
        feed: 'feedname'
        view: 'release'
        definition: 'packagename'
        version: version'
        downloadPath: '$(System.ArtifactsDirectory)'