# Graeme Hill's Dev Blog

## CruiseControl.NET: Versioning ccnet.config and integrating it into CI

Star date: 2010.069

Cruise Control is meant to help manage your builds based on the code in source control, and since ccnet config files are basically code, it only makes sense that they should be a part of this process. Basically, there are two problems I wanted to solve:

• If I change ccnet.config and introduce an error, I want to be able to roll back to a previous version in SVN.
• When multiple developers are working on ccnet.config, they should not be fighting over the same file on the CI server. Instead, each developer should be editing a file in their working copy and then merging changes into the repository.

Both of these issues are actually very easy to solve. Using SVN, you can create a repository with only one file: ccnet.config. Then add this project to both the ccnet.config in SVN and the one actually used by Cruise Control (probably in C:\Program Files\CruiseControl.NET or something like that):

<project name="ccnet config">
<sourcecontrol type="svn">
<executable>C:\path\to\svn\on\CI\server\svn.exe</executable>
<workingDirectory>C:\CI</workingDirectory>
<trunkUrl>http://localhost/svn/myrepo/trunk</trunkUrl>
<autoGetSource>true</autoGetSource>