Azure 管道 - 在功能分支上触发

问题描述

我的 azure-pipeline.yml 定义如下:

trigger:
  branches:
    include:
    - master
    - develop

steps:
-task1
-task2
-task3

在每次推动开发分支时,都会触发管道 - 正如预期的那样。 我想在功能分支上触发相同的管道。

我从开发分支创建了新分支。名称是featureBranch。 我将 azure-pipeline.yml 编辑为如下所示:

trigger:
  branches:
    include:
     - master
     - develop
     - featureBranch

steps:
-task1
-task2
-task3

当我将代码推送到 featureBranch 时,管道不会触发。我也试过这个,但没有成功:

trigger:
  branches:
    include:
    - '*' 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)