Forum Discussion
jerinjames
Mar 23, 2021Copper Contributor
yaml pipline
I am creating a yaml pipeline , and my data is present in different azure git repos. I want my pipeline to trigger when any change in data happens in the master branch of any repos. I looked through ...
cpateman
Mar 30, 2021Copper Contributor
Hello,
normally you would only have one repo linked to a pipeline, so it might be fiddly to get this to work.
I think you can do it by referencing each repo using the Resources feature:
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema
This can also have triggers in these elements, so they can trigger the pipelines.
You can then acces the repo code by choosing it in the download.
The trick will be using the if statements maybe to choose which one to using.
normally you would only have one repo linked to a pipeline, so it might be fiddly to get this to work.
I think you can do it by referencing each repo using the Resources feature:
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema
This can also have triggers in these elements, so they can trigger the pipelines.
You can then acces the repo code by choosing it in the download.
The trick will be using the if statements maybe to choose which one to using.