Project management Practice "The three" daily builds "everyday build Using cruisecontrol.net and MSBuild" __.net

Source: Internet
Author: User
Tags svn tortoisesvn

In the previous tutorial on project management Practice II, source control, "Sources controls using VISUALSVN Server and TortoiseSVN," we've explained how to use TORTOISESVN and VISUALSVN Server for simple versioning, we'll explain using cruisecontrol.net and MSBuild to build a daily build system.

In the first project management practice tutorial, 工欲善其事, its prerequisite "Basic Tools" We have installed cruisecontrol.net 1.4, because we also use MSBuild, so if your system does not have visual Studio installed, So you need to install Visual Studio 2005/2008 First, and we're using Visual Studio 2008 here. OK, we're officially starting today's course.

First, we want to configure Cruisecontrol.net "CCNet", after the configuration is completed, each time we submit the source code to the SVN server, ccnet can automatically check out source code from the SVN server, and call MSBuild to automatically compile. As an example of the Startkit project we created in yesterday's tutorial, let's take a look at the following configuration file: CCNet profile code


Well, we've got a rough idea of CCNet's configuration file, and next, you open the CCNet installation path, Locate the Ccnet.config file under the subdirectory server, copy the configuration information above to the Ccnet.config file, and remember to change some of the paths in the configuration file to your actual path, modify it, and save it. At this point, check to see if the Windows Service Cruisecontrol.net server is started, and if not, start the service, and then open Browse in the Address bar to enter the Weburl address in the above configuration file: http:// 202.196.96.55:8080/server/local/project/startkit/viewprojectreport.aspx can also be entered directly into Http://202.196.96.55:8080/server /, here is the demo address, according to their actual situation to modify the correct address, OK, see similar to the effect of the picture below, OK, fix. If you encounter any trouble, please leave a message below, I will reply in time.
Click Startkit and turn to the page shown in the following image:
OK, here, after we submit the update to the SVN server, CCNet will automatically compile the project according to our configuration, and we can also view the specific compilation information through the Web dashboard, and we can also receive the detailed compilation information through the mail if we configure the mail to send. What do you think. It's easy enough.

In fact, the function of CCNet is quite powerful, the above is only the most commonly used configuration, others have a lot of very good features. Do you want to know. Then you can view the official CCNet document here, in fact, after you install CCNet, the document has been installed on your computer, in the CCNet installation directory of Webdashboard subdirectory doc is.

Well, today's tutorial on here, originally I should put how to use cruisecontrol.net tray to monitor each update after the compile state, but today is really too late, tomorrow will do the project, so I make up tomorrow, please forgive me.
Supplementary section:
Let me briefly explain how to use the Cruisecontrol.net Tray "hereinafter referred to Cctray" to monitor the compilation status after each commit.
Install to open Cctray, run Cctray program, click on the upper left corner of the menu file under the Settings ..., the following figure:

Click the settings ... The following form will pop up:

Switch to the Build Projects tab, as shown in the following figure:

Click Add ... button, add our CCNet server, as shown below:

After entering our ccnet server, the items on the CCNet server are displayed on the right side, as shown in the following figure:

After selecting the item on the right, click on the OK button to return to the interface when Cctray open, our two items have been added, as shown in the following figure:

On the taskbar in the lower-right corner of our desktop, we can see the icons shown in the following illustration:

The green sign is cctray, green means that all the projects have been compiled, magenta indicates that at least one project has not been compiled, Orange indicates that there is a project is compiling, Orange indicates that the project was forced to compile, the display as a gray description and CCNet server lost links.

OK, you can use Cctray to monitor the compilation status of the project after submitting the update in real time.

If you have any questions, you are welcome to communicate with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.