We are using Azure DevOps to build and deploy and we are using Azure DevOps build templates to improve the quality of the build pipelines. We are using the build pipeline templates like the sample shown below
trigger:
batch: true
branches:
include:
- "master"
stages:
- template: ../common/ci-build-python-template.yml
parameters:
PythonPath: "./"
SourcesDirForCoverage: "./"
UnitTestsDir: "./tests/"
As we have started using this approach, it becomes difficult to manage these templates as those are part of the individual repos. Each of the repo owners owns the responsibility of updating these templates. It becomes harder and harder.
I want to have a common repo (much like a library) that all the repos should refer to. So, templates will be updated once in the common repo and it would reflect across the organization.
Is there a way to have such a common repo from where all other repos will refer the templates?