Cruise Control .NET serves as a good Continuous Integration (C.I.) Server. CCNet works with many applications and is relatively quick and easy to setup. CCNet is primarily configured using XML.
This tutorial will outline how to install, setup, and configure a CCNet project using MSBuild. I’m installing this on a Windows 7 SP 1 instance with IIS 7 installed and CruiseControl.NET v 1.6.
- Download Cruise Control .NET
- Accept all the defaults for installation
Once installation is complete, do the following:
- Verify that the “ccnet” virtual application exists in IIS
- If it doesn’t create a Virtual Application underneath the Default Web Site and point it to C:\Program Files\CruiseControl.NET\webdashboard
- Give the “Network Service” Account both “Modify” and “Read & Execute” rights to the following folder: “C:\Program Files\CruiseControl.NET\webdashboard\packages”
- Note: Not doing this will give you an Access Denied error message when attempting to install packages
- Populate the Administrator’s password
- Open the dashboard.config file (C:\Program Files\CruiseControl.NET\webdashboard)
- Look for the following XML snippet: <administrationPlugin password="" />
- Populate the password string with your admin password. The password does not have any limitations other than it can’t be blank.
- By default, the CruiseControl.NET windows service is not started. Start it.
Once these steps are complete, you can browse to http://localhost/ccnet and should see the following screen:
- Click on the “Administer Dashboard” link
- Enter the Admin password you entered in the dashboard.config file
- The list of available packages to install will be on the right hand side.
Configuring of CruiseControl.Net
The project configurations and the build tasks are all configured in the ccnet.config file (C:\Program Files\CruiseControl.NET\server)
*Note that when changing this file, you need to restart the CruiseControl.NET service
Here’s an example of building one solution using MSBuild and running automated tests after the build using MSTest. (Thanks to Ben Hall for the sample file)
<xmllogger logDir="C:\CCNet\HelloWorld\Logs" />