R – How to configure cc.net Interval check to ignore changes to a svn sub-folder

cruisecontrol.netsvn

We have a continuous build setup on our SVN repo using cc.net. The trunk has a sub-folder called "Bin". After a successful build, we copy all our DLLs into the bin folder and check it in. This causes an endless build cycle because the bin folder changes constitute a change and this triggers the interval trigger to commission another build.

Is there any setting on the cc.net side we can set to tell cc.net to ignore the changes to the bin folder?

TIA
rams

Best Answer

Figured this one out based on an answer to a related question.

You need to use the "filtered" sourcecontrol node in your ccnet.config file. Here is a sample. Note the use of exclusionFilters node to exclude changes to files in a folder

<sourcecontrol type="filtered">
    <sourceControlProvider type="svn" autoGetSource="true">
        <trunkUrl>https://servername/ProjectName/trunk</trunkUrl>
        <workingDirectory>C:\ProjectName\Source</workingDirectory>
        <executable>C:\Program Files\svn\svn.exe</executable>
        <username>uname</username>
        <password>pwd</password>
        <timeout units="minutes">300</timeout>
    </sourceControlProvider>
    <exclusionFilters>
        <pathFilter>
            <pattern>/trunk/bin/*.*</pattern>
        </pathFilter>
    </exclusionFilters>
</sourcecontrol>

HTH

Related Topic