How to trigger azure pipeline in one topic branch during push for another topic branch

早过忘川 提交于 2021-01-29 09:57:49

问题


My azure devops pipileine's yaml file is not in master branch of bitbucket. Its in another branch inside master branch (master/pipeline-branch). I am trying to trigger that build when there is a push to another topic branch which is also not the master branch. (master/topic/secondary).

In my yaml file I have written the trigger like this.

trigger: - topic/secondary

But no build is triggered when I push a file to secondary branch.


回答1:


you need to cherry pick\merge commits with this file to the secondary branch or just commit the yaml file to the secondary branch. when a commit is made a decision to start the build or not is being made by evaluating the yaml file inside the branch a commit was made to. if the file doesnt exist in that branch - there is nothing to trigger



来源:https://stackoverflow.com/questions/58968711/how-to-trigger-azure-pipeline-in-one-topic-branch-during-push-for-another-topic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!