0
votes

I have a release pipeline that combines two build pipelines artifacts to create the full release. I need to be able to download the result of this task after is done.

I run the Archive Task to zip the results but I don't know how to save it somewhere where I can download it using the Azure Pipeline agent.

Is there a task that can trigger that as a download or can I save it as an Artifact?

Thank you

2
Do you use YAML for pipelines and release? Or not?Krzysztof Madej
No, I'm using the classic pipeline.Fernando
So you need to use publish pipeline artifact task.Krzysztof Madej
That does not work on Release Pipeline unless is to a file shareFernando

2 Answers

0
votes

Yeah, what you have to do is publish and then consume artifact in your Release pipeline. Here you have documentation

steps:
- publish: $(System.DefaultWorkingDirectory)/bin/WebApp
  artifact: WebApp

Id you use Yaml then you should use this:

steps:
- download: current
  artifact: WebApp

If you use Classic releases you needs to confgure it on designer.

Please use this task in your pipeline:

enter image description here

and then configure your release here:

enter image description here

0
votes

Just realized that if I do this with my On-Prem agent I can get the file form the agent's file structure.

Would be nice though if I could get the file straight from Azure instead.

Thank you.