I have two ADO repositories named private2
and public2
. private2
references public2
as a submodule:
I also added a yaml file (vsts-cicd.yml) for build as follows:
resources:
repositories:
- repository: test
type: git
name: <ProjectName>/public2
ref: master
stages:
- template: build1.yml@test
parameters:
repoToCheckout: test
checkoutPath: '$(Build.BuildNumber)'
- template: build2.yml@test
parameters:
repoToCheckout: test
checkoutPath: '$(Build.BuildNumber)'
- template: yaml/build3.yml
On running the build, I see the first two templates completed successfully. On reaching - template: yaml/build3.yml
it fails with the following error:
What am I missing?
UPDATE:
I followed this article (https://www.timschaeps.be/post/dealing-with-error-tf401019-submodules-azure-pipelines/) to fix the issue however I don’t see this option in project settings: ‘Limit job authorization scope to referenced Azure DevOps repositories’. What am I missing?