Search code examples
cruisecontrol.netccnet-config

Confusion with CruseControl.NET sourcecontrol exclusionFilters patterns


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/
  • 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.


Solution

  • Found the working pattern:

    /trunk/ignoreme/**/*.*