Pipeline Alias

%3CLINGO-SUB%20id%3D%22lingo-sub-3063813%22%20slang%3D%22en-US%22%3EPipeline%20Alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3063813%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20a%20DevOps%20pipeline%26nbsp%3Bin%20which%20I%20need%20to%20download%20an%20artefact%20produced%20by%20another%20pipeline.%3C%2FP%3E%0A%3CP%3EI%20want%20to%20use%20something%20like%20this%3A%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-yaml%22%3E%3CCODE%3E-%20task%3A%20DownloadPipelineArtifact%402%0A%20%20%20%20displayName%3A%20Download%20Pipeline%20Artifacts%0A%20%20%20%20inputs%3A%0A%20%20%20%20%20%20source%3A%20'specific'%0A%20%20%20%20%20%20project%3A%20'%24(resources.pipeline.%3CALIAS%3E.projectID)'%0A%20%20%20%20%20%20pipeline%3A%20'%24(resources.pipeline.%3CALIAS%3E.pipelineID)'%0A%20%20%20%20%20%20preferTriggeringPipeline%3A%20true%0A%20%20%20%20%20%20%24%7B%7B%20if%20eq(parameters.buildPipelineId%2C%20'latest')%20%7D%7D%3A%0A%20%20%20%20%20%20%20%20buildVersionToDownload%3A%20'latestFromBranch'%0A%20%20%20%20%20%20%24%7B%7B%20if%20ne(parameters.buildPipelineId%2C%20'latest')%20%7D%7D%3A%0A%20%20%20%20%20%20%20%20buildVersionToDownload%3A%20'specific'%0A%20%20%20%20%20%20%20%20runId%3A%20'%24%7B%7B%20parameters.buildPipelineId%20%7D%7D'%0A%20%20%20%20%20%20runBranch%3A%20'%24(Build.SourceBranch)'%0A%20%20%20%20%20%20path%3A%20%24(Pipeline.Workspace)%2F%24%7B%7B%20parameters.artifactName%20%7D%7D%3C%2FALIAS%3E%3C%2FALIAS%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebut%20I%20don't%20know%20which%20value%20I%20must%20insert%20instead%20of%20%22alias%22.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20source%20pipeline%20is%20named%20%221-TestPipeline%22%20and%20is%20under%20the%20TEST%20folder%20in%20the%20DevOps%20Pipeline%20tab.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20help%20me%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3EG%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3063813%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epipeline%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Hello,

 

I have a DevOps pipeline in which I need to download an artifact produced by another pipeline.

I want to use something like this:  

 

- task: DownloadPipelineArtifact@2
    displayName: Download Pipeline Artifacts
    inputs:
      source: 'specific'
      project: '$(resources.pipeline.<alias>.projectID)'
      pipeline: '$(resources.pipeline.<alias>.pipelineID)'
      preferTriggeringPipeline: true
      ${{ if eq(parameters.buildPipelineId, 'latest') }}:
        buildVersionToDownload: 'latestFromBranch'
      ${{ if ne(parameters.buildPipelineId, 'latest') }}:
        buildVersionToDownload: 'specific'
        runId: '${{ parameters.buildPipelineId }}'
      runBranch: '$(Build.SourceBranch)'
      path: $(Pipeline.Workspace)/${{ parameters.artifactName }}

 

 

but I don't know which value I must insert instead of "alias". 

My source pipeline is named "1-TestPipeline" and is under the TEST folder in the DevOps Pipeline tab. 

 

Can you help me?

 

Thanks,

G

1 Reply
Hi @coccigi, have you got the answer you're looking for ?