Azure Pipelines pipeline resource "could not be found"
A resources.pipelines entry references a source pipeline by source and the run could not resolve it. The source must equal the producing pipeline definition name, and a cross-project reference needs project set.
What this error means
The run fails with The pipeline resource X could not be found or a download from the pipeline resource fails because the source never resolved.
##[error]The pipeline resource 'buildPipeline' references a source pipeline
that could not be found in this project.Common causes
The source name does not match the definition
source must be the exact name of the producing pipeline definition, not its YAML file or repo name.
A cross-project reference without project
When the source pipeline lives in another project, the resource must set project or it cannot be found.
How to fix it
Reference the source pipeline by its definition name
Set source to the producing pipeline name, and add project when it is in another project.
resources:
pipelines:
- pipeline: upstream
source: 'Build-Service-CI'
project: 'Platform'
trigger: trueDownload from the resource alias
Use the pipeline alias (not source) when downloading the artifact from the resource.
- download: upstream
artifact: dropHow to prevent it
- Set
sourceto the exact source pipeline definition name. - Add
projectfor cross-project pipeline resources. - Reference the resource by its
pipelinealias when downloading.