Practical dailybuild-cc.net Configuration

Source: Internet
Author: User

Practical dailybuild-cc.net Configuration

CoolBug DailyBuild full Raiders http://www.cnblogs.com/coolbug/articles/27735.html get hand, according to the given method to do, in fact, still need to pay some time. But the basic problem is not big. This article mainly describes the cc.net environment configuration, because I just completed the configuration.

First, download the latest cc.net, nant, and nantcontrb from sourceforge. Unpack the package and copy the program to a separate folder. Here I am d: \ dailybuild, where cc.net and nant are placed. Copy all the content in the bin of nantcontrb to the bin of nant.

Second, create your own working directory. My dailybuild directory is e: \ temp \ dailybuild. Because the daily build content does not need to do anything else, you can put it in the temp directory.

Third, configure parameters according to the article in coolbug. Until the build is successful.

Fourth, create a cc.net Web service. Cc.net contains five parts in the cc.net directory. Server is the most important service of cc.net. The article on coolbug guides us to configure this, but the server also has another vest, webservice, which provides the remoting interface through IIS. The other is the status report, which is in the web directory. The remaining two functions are similar: status report and build control. cctray is a monitoring program running on the local machine. webdashboard supports the browser to report and control the build status.

To successfully configure several other cc.net services, start IIS on the machine as follows:
1. Move ccnet. config. This file does not have to be placed under cc.net \ server. you can modify the content in ccservice.exe. config.
<Deleetask>
<Add key = "ccnet. config" value = "E: \ temp \ dailybuild \ ccnet. config"/>
<Add key = "remoting" value = "on"/>
</AppSettings>
This aims to put all the configurations together, so that you do not forget to modify them.

2. Modify the log storage location in the ccnet. config file. It is best to create a new storage directory by yourself. I will create this directory directly under the server directory.
<Xmllogger>
<LogDir> D: \ dailybuild \ cc.net \ server \ log </logDir>
</Xmllogger>
Set the email content in publisher and send me an email indicating the status of each build.

3. Configure web functions. Enable internet sharing in the web directory (you can also do it directly in the IIS manager ). Modify the configuration file Web. config in the directory as follows:
<Deleetask>
<Add key = "logDir" value = "D: \ dailybuild \ cc.net \ server \ log"/>
<Add key = "ServerLogFilePath" value = ""/>
<Add key = "ServerLogFileLines" value = "50"/>
</AppSettings>
LogDir is the logDir location in the previous step. You do not need to fill in the ServerLogFilePath because if VSS is used for version management, the user name and password of the VSS logon will be leaked, and the code path will also be displayed. This is not good. I directly disable the server log viewing function. The method is very simple. It is to change the plugin in the same Web. config to this way, and then rename the corresponding ServerLog. aspx.
<! -- Plugin linkText = "server log" linkUrl = "ServerLog. aspx"/-->
During configuration, IIS reported a problem with compile. xsl. The content in web/xsl/compile. xsl can be modified as follows.
<Xsl: template match = "message [(contains (text (), 'error') and not (contains (text (), '0 error ')))) or (contains (text (), 'warning') and not (contains (text (), '0 warning')] ">
<Pre class = "compile-error-data"> <xsl: value-of select = "text ()"/> </pre>
</Xsl: template>

4. Configure the webdashboard function. Open internet sharing directly in the webdashboard directory. You do not need to configure other items. If you decide to decentralize the functions of cc.net, you can check the projectURLs configuration items in Web. config.

5. Configure webservice. I have not configured or shared it. If you want to use it, refer to the remoting service configuration method in msdn.

In addition, I tried to install the windows service function of cc.net, but it was not installed. NullReferenceException may occur during the installation process. On its website, it seems that this function is still unstable. My attempt is as follows: Open the tool "Visual Studio. NET 2003 command prompt ", switch to the cc.net \ server Directory, run installutil ccservice.exe, prompt the user account required to start the service, I enter the Super User, then an exception occurs, failed!

Because I do not like to keep a black window on the interface, I created a plan in the scheduler task of the control panel, and regularly run cc.net \ server \ startCCNet at five o'clock P.M. every day. bat, and then set to exit after running for more than 30 minutes.

There are already a lot of questions about nant configuration on the Internet, and it's easy to get started. I won't talk about it here. Note that nant can now compile. sln directly using the solution command, which is very good!
When using nant, there will be a problem, that is, the question of. net framework.exe. You can modify the configuration in nant.exe. config. The result is as follows:
<Platform name = "win32" default = "net-1.1"> <! -- Default = "auto" -->
Otherwise, if you install. net2.0, solution will call. net2.0 to compile your program.

In addition, students who use msbuild can read this article and learn how to combine msbuild and cc.net.
Http://blogs.msdn.com/mswanson/archive/2004/10/05/238423.aspx

Related Article

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.