Forum Discussion
How should I publish my distributable release files in a release pipeline?
May consider below as workaround:
1. Upload to Release Pipeline Logs
You can zip your distributable files and use a logging command to attach them to the release logs:
echo "##vso[task.uploadfile]$(System.DefaultWorkingDirectory)\yourfile.zip"
• This makes the file downloadable directly from the release pipeline UI.
• It’s not elegant, but it’s accessible and doesn’t require extra tools.
2. Use Azure DevOps Extension
Try the extension “Publish and Download Artifacts from Release Pipelines”:
• It allows uploading files from release pipelines and downloading them from the UI.
• You can find it in the Azure DevOps Marketplace.
3. Push to Git Repo
If your repo permits it, you can push release files into a dedicated folder in your Git repo:
• Use a script in the release pipeline to commit and push the files.
• This gives you versioning and easy access via the repo browser.
4. Use REST API to Generate Download Links
If you go with build artifacts, you can retain builds and generate direct download links using the Azure DevOps REST API:
https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/artifacts?artifactName={artifactName}&api-version=7.2-preview.5&$format=zip
• This requires some scripting but avoids CLI tools for the end user.