I have multiple microservices repos in azure. Each having its individual pipeline.
I want to trigger all microservices (child) pipelines after completion of one source pipeline A.
For this, I have added the “pipeline” resource in each microservice repo yaml file, which points to pipeline A using pipeline completion triggers taking ref. from doc.
`resources:
pipelines:
- pipeline: A # Name of the pipeline resource.
source: A # The name of the pipeline referenced by this pipeline resource.
trigger: true # Run app-ci pipeline when any run of security-lib-ci completes`
Now, above snippet is put in ‘release/’ branch of diff microservice. Note: Each microservice has its different branch used for pipeline.
But still child pipeline are not triggered after A. Reason being all child pipelines has ‘main’ as their default branch.
If I have to change that, I have manually go to ‘each’ pipeline UI trigger section and change ‘Default branch for manual and scheduled builds’ from main to respective release branch. And only then those will get triggered.
This process is very tedious as number of MicroServices(Child) pipelines are too many.
Can someone please guide through this? or if there is any other way than using ‘pipeline resource’