Setup CruiseControl.NET with Collabnet Edge
Tech-Today

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 (http://confluence.public.thoughtworks.org/display/CCNET). I've worked with my environment setup:
-Windows 7
-CruiseControl.NET (http://sourceforge.net/projects/ccnet/)
-Collabnet Edge (http://www.collab.net/downloads/subversion/)

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 (http://websvn.tigris.org/)
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

c:\svnrepo\conf\svnserve.conf
anon-access = none
auth-access = write
password-db = passwd

C:\cgipages\websvn-2.3.3\include\config.php
$config->addRepository('EfficientPaging', 'file:///c:/svnrepo/efficientpaging');
$config->setSvnConfigDir('c:/svnrepo/conf');
$config->parentPath("c:/svnrepo");

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:














EfficientPaging

C:\projects\cruisecontrol.net\EfficientPaging

C:\projects\cruisecontrol.net\EfficientPaging\deploy
http://localhost/ccnet/server/local/ViewServerReport.aspx
C:\test\EfficientPaging




http://bahamuth:84/svn/EfficientPaging/trunk/
C:\projects\cruisecontrol.net\EfficientPaging
admin
admin
true
C:\csvn\bin\svn.exe




C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\projects\cruisecontrol.net\EfficientPaging
EfficientPaging.sln
/noconsolelogger /p:Configuration=Debug /p:ReferencePath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0;c:\lib" /p:AdditionalReferencePath="C:\lib"
Build;Test
300
C:\Program Files (x86)\CruiseControl.NET\webdashboard\bin\ThoughtWorks.CruiseControl.MsBuild.dll











C:\projects\cruisecontrol.net\EfficientPaging\deploy\output\*-results.xml









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:
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html http://willperone.net/Code/svnserver.php
http://www.collab.net/downloads/subversion/ (svnserve)
http://svn.spears.at/
http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-serversetup-svnserve.html




- How To Add Global Ignore File In Git
This tutorial assumes that you already download and install GIT: http://git-scm.com/downloads. Note that I've done this in windows 7. Also please make sure that you add GIT_HOME/bin folder in your path. Steps: 1.) Create a new file C:\Program...

- An Alternative Way Of Invoking Jenkins After Svn Commit
This page assumes that you have already setup the following in your Ubuntu 12.04 system: 1.) Jenkins 2.) Artifactory 3.) SVN Normally we use this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin, where we edit the svn's post-commit...

- How To Setup Openvpn To Access To A Remote Internal Network From Home
This write up will help you setup open vpn for remote access. I'm assuming you're using a windows machine :-) 1. First download and install the OpenVPN client from: http://openvpn.net/index.php/open-source/downloads 2.) Ask for the ff files...

- Setting Up Eclipse, Subclipse And Visual Svn Server
If you are tired of the usual copy all, zip backup your application files then I suggest you try using SVN. But let me clarrify, SVN is not a backup management tool. Instead it's a way of properly tagging each file, fix/update wherein you can put...

- How To Setup Cvs Server And Client On A Windows Machine.
How to setup cvs server and client on a windows machine. Requirements: 1.) http://www.wincvs.org/ - download wincvs it has cvsnt included in the zip file Or 1.1) http://www.tortoisecvs.org/download.shtml = download TortoiseCVS Instructions: 0.) Stop the...



Tech-Today








.