0
votes

I am converting a classic Build and Release Pipeline to a Multi-Stage Yaml pipeline in Azure Devops. I keep getting a "Could not find any file matching the template file pattern" error from my Multi-Stage-Pipeline in the Release Part.

Build Part

Build

Release part

Release

2

2 Answers

1
votes

In the build part you published the artifact to the pipeline workspace, so you should reference this path in the release part. Use $(Pipeline.Workspace) instead of $(Build.ArtifactStagingDirectory) in the csmFile and csmParameterFile. That should solve the issue and is the cleanest solution without an extra download artifact step.

0
votes

My bad - needed to download artifact first

enter image description here