Setup CruiseControl.NET with Collabnet Edge

Recently I was searching for a Continuous Build Integration software for dotnet like what Jenkins do for java and I've found CruiseControl.NET ( I've worked with my environment setup:
-Windows 7
-CruiseControl.NET (
-Collabnet Edge (

Note that I've tried using SlikSvn and VisualSvn but there failed.

I'll explain what happened (using either SlikSvn or VisualSvn)
1.) Set the path to where the SlikSvn or VisualSvn bin directory is so that svn.exe is accessible anywhere.

For this you need websvn (
c:\>svnadmin create c:/svnrepo
c:\>md test
c:\>cd test
c:\test>md projectA
c:\test>svn import projectA file:///c:/svnrepo/projectA
c:\test>svn list file:///c:/svnrepo/projectA
c:\test>svn checkout file:///c:/svnrepo/projectA projectACheckout
c:\test>set SVN_EDITOR=c:\windows\system32\notepad.exe

 anon-access = none      
 auth-access = write      
 password-db = passwd    

 $config->addRepository('EfficientPaging', 'file:///c:/svnrepo/efficientpaging');

sc create svnserver binpath= "c:\svnrepo\bin\svnserve.exe --service -r c:\svnrepo" 
displayname= "Subversion" depend= Tcpip start= auto
But I always got the persistent error: svn.exe: Can't determine the user's config path. So I try to search for a new svn server/client and found Collabnet Edge. This is how I did it: 1.) Install Collabnet Edge (c:\csvn) 2.) You can test if it successfully install by accessing: http://localhost:3343/csvn/. Account by default is admin/admin, you can change the password after first login. 3.) Try to create a new repository and make sure the "Use Template" is checked.
You will sure encounter this error: Collabnet: There was a problem saving one or more of these values. To solve this open services.msc, and change the Logon Account to "Network Service" (without password) for these 2 services: CollabNet Subversion Edge and CollaNet Subversion Server. 4.) Try to create a repository again, this time the error is gone. 5.) You can see the new repository created like this:
6.) You can change the settings such as port in the Adminisration tab:
Next is how to setup CruiseControl.NET 1.) Install CtruiseControl.NET (C:\Program Files (x86)\CruiseControl.NET) 2.) Edit C:\Program Files (x86)\CruiseControl.NET\server\ccservice.exe.config, make sure in AppSettings that you have:

3.) Modify the ccnet.config file, here's mine:

        /noconsolelogger /p:Configuration=Debug /p:ReferencePath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0;c:\lib" /p:AdditionalReferencePath="C:\lib"
        C:\Program Files (x86)\CruiseControl.NET\webdashboard\bin\ThoughtWorks.CruiseControl.MsBuild.dll

If you have questions you can refer tdo CruiseControl.NET's documentation for tags and possible values. 4.) Run the CruiseControl.NET service in services.msc and you're sure to have this error: "CruiseControl.Net: Process err output: svnadmin: Can't determine the user's config path." 5.) Like what we did earlier open services.msc and change Logon Account to Network Service for CruiseControl.NET Server. 6.) Move C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll -> C:\Program Files (x86)\CruiseControl.NET\webdashboard\bin\ThoughtWorks.CruiseControl.MsBuild.dll 7.) CruiseControl should be accessible here: http://localhost/ccnet 8.) To login click dashboard->local, Login in top right (required):
9.) You're project should now be visible in the dashboard (note that it checks every 30s if a user has committed and build if it's the case).
References: (svnserve)
Setup CruiseControl.NET with Collabnet Edge Setup CruiseControl.NET with Collabnet Edge Reviewed by Edward Legaspi on Friday, November 11, 2011 Rating: 5

No comments:

Powered by Blogger.