CruiseControl.NET,Nant持续集成(1)

工具下载:

CruiseControl.NET http://sourceforge.net/project/showfiles.php?group_id=71179&package_id=83198

CCNetConfig http://ccnetconfig.codeplex.com/

Nant http://nant.sourceforge.net/

 

杂项记录

1。如何指Nant编译的目标框架?

<buildArgs>-t:net-1.1</buildArgs>

2。CCService服务安装与卸载

%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\installutil.exe /ServiceName="CCService2" ccservice.exe
 
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\installutil.exe /u /ServiceName="CCService2" ccservice.exe
3.email通知

      <publishers>
               <xmllogger logDir="E:\DailyBuild\Log\3\buildlogs" />  <!-- 编译日志存放路径 -->
               <!-- 下面设置编译报告通过email通知相关人员 详细信息参考cc.net的帮助-->
               <email from="admin@163.com" mailhost="smtp.163.com" mailhostUsername="admin" mailhostPassword="123" includeDetails="true">
                   <users>
                       <user name="dachuan" group="buildmaster" address="dachuan@163.com"/>
                   </users>
                   <groups>
                       <group name="buildmaster" notification="always"/>
                   </groups>
               </email>
           </publishers>

4.设定编译时间

         <triggers>  <!-- 该触发器控制周一到周五的23点到0点的时间段内进行编译,每900秒检查一次svn有无更新 ,如果有就取出并编译-->
                <filterTrigger startTime="08:00" endTime="23:00">
                    <trigger type="filterTrigger" startTime="23:00:00" endTime="23:59:59">
                        <trigger type="intervalTrigger" name="continuous" seconds="900" />
                        <weekDays>
                            <weekDay>Saturday</weekDay>
                            <weekDay>Sunday</weekDay>
                        </weekDays>
                    </trigger>
                </filterTrigger>
            </triggers>
 
5.隐藏webdashboard中的Server Log信息。
templates目录下Serverlog.vm文件,把中间的$log变量去掉即可。
相关链接
http://www.cnblogs.com/ttzhang/archive/2008/11/07/1328533.html
http://www.cnblogs.com/BigTall/archive/2009/01/14/68126.html
http://www.cnblogs.com/zjneter/archive/2008/05/18/1202235.html

posted on 2009-04-28 16:47  zqonline  阅读(601)  评论(0编辑  收藏  举报

导航