I need some clarification wrt to Azure pipeline Git repo branch triggers. Following situation: In my develop branch I have a pipeline yml where the triggers are the develop and the main branch. The pipeline is initially created out of this yml file.
Now I create the main branch in my GIT repo but in the related yml file I remove the automatic triggering for the main branch since I want for the release builds to be triggered manually. Which trigger information is now used and applied in case a commit is pushed to main branch?
I know this scenario does not make so much sense but I am really wondering how a trigger can be defined that spans more than the current branch if in the other branch's yml file I can define in the yml again todally different triggers.
The question to be answered id: How is the trigger information resolved depending on the branch where the yml file is located?
The official docs mentioned here do answer this question: https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#ci-triggers