gpt4 book ai didi

Azure Pipeline 在触发器路径中使用星号包括

转载 作者:行者123 更新时间:2023-12-03 00:55:42 25 4
gpt4 key购买 nike

我想在 azure devops 中创建一个管道触发器,该触发器仅在名为 src/Subscription 的文件夹中发生更改时触发。*

我的文件夹结构:

  • 源代码
    • 订阅.数据
    • Subscriptin.Api
    • 订阅.共享

我的管道看起来如何

trigger:
branches:
include:
- development
- master
- release
paths:
include:
- src/Subscription.**/*

如何更改包含以触发所有文件夹中的文件更改?

最佳答案

How can i change the include to trigger on file changes in all the folders ?

直到 2021 年 9 月 8 日,这仍然是我们主要产品论坛上的已知请求:

Support wildcards (*) in Trigger > Path Filters

现在,现在可以了,正如上面写的 here但是功能需要改进:

Wild cards can be used when specifying inclusion and exclusion branches for CI or PR triggers in a pipeline YAML file. However, they cannot be used when specifying path filters. For instance, you cannot include all paths that match src/app//myapp*. This has been pointed out as an inconvenience by several customers. This update fills this gap. Now, you can use wild card characters (, *, or ?) when specifying path filters.

现在,我们可以使用 *,但不能使用 ***

作为此问题的解决方法:

trigger:
branches:
include:
- development
- master
- release
paths:
include:
- src/Subscriptin.Api/*
- src/Subscription.Data/*
- src/Subscription.Shared/*

关于Azure Pipeline 在触发器路径中使用星号包括,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69539436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com