I have n+ github repositories that I would like to connect to 2 separate Azure DevOps pipelines.
- I do not want to use azure-pipelines.yaml per repo as it would be the same for all of them. In case of any changes I would prefer to change in a single repo then in n+ of them.
- My goal is to have a github status checks for commits and PRs for all my n+ repos.
- The pipelines themselves are hosted in github (if that makes any difference).
My current setup to trigger on push is to use resources in following manner:
resources:
repositories:
- repository: self
type: git
name: woohoo/validation1
trigger: none # to avoid triggering the build for pipeline itself
- repository: repo1
type: githubenterprise
name: woohoo/repo1
endpoint: myendpoint
trigger:
branches:
include:
- test/*
pr:
branches:
include:
- '*'
- repository: repo2
type: githubenterprise
name: woohoo/repo2
endpoint: myendpoint
trigger:
branches:
include:
- test/*
pr:
branches:
include:
- '*'
...
This works well for triggering the builds and run them correctly but status checks are still missing. Also, I do not see the pipeline when editing Branch protection rule in Require status checks to pass before merging section.
I suspect that I'm missing some triggers/hooks configuration, any help would be appreciated.