Allowing Azure DevOps Release Pipelines Access to Remote Artifacts

A screenshot of the Azure DevOps project summary screen with the "Project settings" navigation item highlighted

If you’re using Azure DevOps for your continuous integration/continuous deployment (CI/CD) pipelines you may have stumbled across a pretty cool feature: you can create a build pipeline artifact in one project and import it into the release pipeline of another project! I use this to build a utility once and then import it into several other projects to avoid having to build it several times and trying to maintain settings in multiple places.

The issue is that the first time I tried using this approach, I received the following error:

2022-05-31T06:42:42.2517765Z ##[section]Starting: Download artifact - _Utility App - Utility App
2022-05-31T06:42:42.3632226Z ==============================================================================
2022-05-31T06:42:42.3632956Z Task         : Download build artifacts
2022-05-31T06:42:42.3633439Z Description  : Download files that were saved as artifacts of a completed build
2022-05-31T06:42:42.3633715Z Version      : 0.200.1
2022-05-31T06:42:42.3634068Z Author       : Microsoft Corporation
2022-05-31T06:42:42.3634549Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
2022-05-31T06:42:42.3634953Z ==============================================================================
2022-05-31T06:42:49.0078464Z Error: in getBuild, so retrying => retries pending  : 4
2022-05-31T06:43:34.1171511Z Error: in getBuild, so retrying => retries pending  : 3
2022-05-31T06:45:49.4315894Z Error: in getBuild, so retrying => retries pending  : 2
2022-05-31T06:51:49.7774413Z Error: in getBuild, so retrying => retries pending  : 1
2022-05-31T06:57:49.9960407Z ##[error]Failed in getBuild with error: Error: VS800075: The project with id 'vstfs:///Classification/TeamProject/{GUID}' does not exist, or you do not have permission to access it.
2022-05-31T06:57:50.0533271Z ##[error]Error: VS800075: The project with id 'vstfs:///Classification/TeamProject/{GUID}' does not exist, or you do not have permission to access it.
2022-05-31T06:57:50.0572339Z ##[section]Finishing: Download artifact - _Utility App - Utility App

I couldn’t find a clear answer for how to fix it but managed to get there with some trial and error!

Continue reading “Allowing Azure DevOps Release Pipelines Access to Remote Artifacts”