如何在推送另一个主题分支的过程中触发一个主题分支中的Azure管道 [英] How to trigger azure pipeline in one topic branch during push for another topic branch

查看:69
本文介绍了如何在推送另一个主题分支的过程中触发一个主题分支中的Azure管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的天蓝色devops pipileine的yaml文件不在bitbucket的主分支中.它在master分支(master/pipeline-branch)内的另一个分支中.当尝试推送到另一个不是master分支的主题分支时,我试图触发该构建.(主/主题/中学).

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).

在我的yaml文件中,我编写了这样的触发器.

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

触发:-主题/中学

但是当我将文件推送到辅助分支时,不会触发任何构建.

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

推荐答案

,您需要选择拾取\将此文件的提交合并到辅助分支,或者仅将yaml文件提交给辅助分支.当做出提交决定时,通过评估做出该提交的分支内的yaml文件来决定是否开始构建.如果该分支中不存在该文件-没有要触发的内容

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

这篇关于如何在推送另一个主题分支的过程中触发一个主题分支中的Azure管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆