仅在一个目录发生更改时运行管道

2024-02-16

所以我有一个具有某种结构的项目。每当我将更改推送到任何文件管道时都会运行。但我希望它仅在特定目录发生更改时运行。有可能吗?


The JIRA问题 https://jira.atlassian.com/browse/BCLOUD-16560指的是这种情况最近更新为这可以直接应用。

来自 bitbucket 博客文章的示例:

- step:
          name: build-frontend-artifact
          condition:
              changesets:
                  includePaths:
                    # only xml files directly under resources directory
                    - "src/main/resources/*.xml"
                    # any changes in frontend directory
                    - "src/site/**"
          script:
             - echo "Building frontend artifact"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

仅在一个目录发生更改时运行管道 的相关文章

随机推荐