Search code examples
build-processcruisecontrol.net

CruiseControl.net -- How to checkin code during the build


I'm setting up CruiseControl.NET and during the build I want to modify my version.txt file and have it checked in. When I do this, CruiseControl.NET doesn't know this checkin was done by the build and so the next time it checks sources, it sees there were modifications and rebuilds again (I have IfModificationExists set in the project build). How do I tell CruiseControl.NET to check this file in or let it know that this one is OK so it doesn't keep re-triggering builds?


Solution

  • You can use exclusionFilters in the project to exclude the version.txt file from triggering a build.

    <sourcecontrol type="filtered">
        <sourceControlProvider type="svn">
           ...        
        </sourceControlProvider>
        <exclusionFilters>
            <pathFilter>
                <pattern>**/Version.txt</pattern>
            </pathFilter>
        </exclusionFilters>
    </sourcecontrol>
    

    Documentation is available at:

    http://www.cruisecontrolnet.org/projects/ccnet/wiki/Filtered