So I have the following Azure DevOps pipeline that includes templates from a repository in another project. Including that isn’t the problem though.
The issue is that the template included has nested templates that it also includes. When it includes them in this pipeline, it looks for them in the local repo, rather than recursively doing it so that it looks for those templates in that other project. I hope that makes sense.
Is there a way to do this?
trigger:
- none
pr: none
parameters:
- name: test
displayName: Test
type: string
default: cbc
resources:
repositories:
- repository: more-templates
type: git
name: project1/repo1
ref: dev-r1
variables:
- template: /variables/var.yaml@more-templates
name: Curam-SPM-Build-${{ parameters.project }}-$(Build.BuildId)
pool:
name: $(AGENT_POOL)
stages:
- template: /pipelines/test/stage.yaml@more-templates
parameters:
test: testing