与 CruseControl.NET 源代码控制排除过滤器模式的混淆
我们在构建过程中使用 CruiseControl.NET,在 ccnet.config 中,我想排除对特定目录及其子目录的更改,以免触发该项目的构建,但我尝试过的不断触发项目的构建。
示例存储库
- trunk/
- 富/
- index.html
- 忽略/
- index.html
- 栏/
- 富/
- branches/
- tags/
示例 ccnet.config
<sourcecontrol type="filtered">
<sourceControlProvider type="svn">
<trunkUrl>$(RootUrl)/trunk</trunkUrl>
<autoGetSource>true</autoGetSource>
</sourceControlProvider>
<exclusionFilters>
<pathFilter>
<pattern>/ignoreme/**</pattern>
</pathFilter>
</exclusionFilters>
</sourcecontrol>
将任何内容提交到ignoreme 目录中不应触发此项目。模式应该是什么(现有:/ignoreme/**
)?
谢谢。
we are using CruiseControl.NET for our build process and in ccnet.config, I want to exclude changes to a particular directory and it's children from triggering that project's build, but what I've tried keeps triggering the project's build.
Example repo
- trunk/
- foo/
- index.html
- ignoreme/
- index.html
- bar/
- foo/
- branches/
- tags/
Example ccnet.config
<sourcecontrol type="filtered">
<sourceControlProvider type="svn">
<trunkUrl>$(RootUrl)/trunk</trunkUrl>
<autoGetSource>true</autoGetSource>
</sourceControlProvider>
<exclusionFilters>
<pathFilter>
<pattern>/ignoreme/**</pattern>
</pathFilter>
</exclusionFilters>
</sourcecontrol>
Committing anything into the ignoreme directory should not trigger this project. What should the pattern be (existing: /ignoreme/**
)?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了工作模式:
Found the working pattern:
不是直接答案,但这是一个简单的替代方案 -
将间隔触发器与全局SVN 更新,然后使用 文件系统触发器在其他项目中,仅引用所需的文件夹。
华泰
Not a direct answer, but here's a simple alternative -
Use Interval trigger with global SVN update, and then use FileSystem trigger in other projects, referencing needed folders only.
HTH