trigger:
- main
pool:
name: Default
steps:
-
task: DownloadPipelineArtifact@2
inputs:
artifactName: “test_artifact”
project: “Artifact_Demo” # Specify the name of the project where the artifact is locatedpipeline: “source-pipeline” # Specify the ID of the pipeline producing the artifact
buildVersionToDownload: “latest”
downloadType: “single”
path: “$(System.ArtifactsDirectory)”
targetPath: “$(System.ArtifactsDirectory)/test_artifact” -
powershell: |
Get-ChildItem -Path “$(System.ArtifactsDirectory)test_artifact” -Recurse
displayName: ‘List Contents of Downloaded Artifact’
Error
artifact_producing_pipeline