开发者

Confusion with CruseControl.NET sourcecontrol exclusionFilters patterns

we are using CruiseControl.NET for our build process and in ccnet.config, I want to exclude change开发者_运维问答s 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/
  • 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.


Found the working pattern:

/trunk/ignoreme/**/*.*


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜