How to 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 CruiseContr...
https://www.czetsuyatech.com/2011/11/c-setup-cruisecontrol-with-collabnet.html
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.
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:
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
-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= autoBut 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:..
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):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
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
Post a Comment