Posted on 2011-07-19 23:17
匆匆过客 阅读(867)
评论(0) 编辑 收藏 所属分类:
Others
二、配置样例
1、ccnet.config
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="HCIN">
<!--
==========================================================
SVN集成
==========================================================
-->
<sourcecontrol type="svn">
<!-- SVN的项目Url-->
<trunkUrl>https://localhost:8443/svn/HCIN/Xml/trunk/</trunkUrl>
<!-- SVN的用户名-->
<username>thomaschen75</username>
<!-- SVN的口令-->
<password>123456</password>
<!-- SVN客户端,这里选择的是SlikSvn-->
<executable>D:\Program Files\SlikSvn\bin\svn.exe</executable>
<cleanCopy>true</cleanCopy>
<!-- 迁出本地位置-->
<workingDirectory>E:\NetCruise</workingDirectory>
</sourcecontrol>
<!--
=========================================================
Trigger触发器。
=========================================================
-->
<triggers>
<!-- 定时触发器,每隔1小时强制build系统-->
<intervalTrigger name="continuous" seconds="3600" buildCondition="ForceBuild"/>
</triggers>
<tasks>
<!--
pushlisher logs all mofications for each build in a file
These modifications can be viewed in the Dashboard with the moficationHistoryProjectPlugin plugin enabled
-->
<modificationHistory onlyLogWhenChangesFound="true"/>
<statistics />
<!-- Build Task -->
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>E:\NetCruise</workingDirectory>
<projectFile>HandleXML.sln</projectFile>
<buildArgs>/p:Configuration=Debug /v:diag</buildArgs>
<targets>Build</targets>
<timeout>900</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
</tasks>
</project>
</cruisecontrol>
2、dashboard.config
<?xml version="1.0" encoding="utf-8"?>
<dashboard>
<remoteServices>
<servers>
<!-- Update this list to include all the servers you want to connect to. NB - each server name must be unique -->
<server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" />
</servers>
</remoteServices>
<plugins>
<farmPlugins>
<farmReportFarmPlugin categories="false" />
<cctrayDownloadPlugin />
<administrationPlugin password="123456" />
</farmPlugins>
<serverPlugins>
<serverReportServerPlugin />
</serverPlugins>
<projectPlugins>
<projectReportProjectPlugin />
<viewProjectStatusPlugin />
<latestBuildReportProjectPlugin />
<viewAllBuildsProjectPlugin />
<modificationHistoryProjectPlugin onlyShowBuildsWithModifications="true"/>
<projectStatisticsPlugin xslFileName="xsl\StatisticsGraphs.xsl" />
</projectPlugins>
<buildPlugins>
<buildReportBuildPlugin>
<xslFileNames>
<xslFile>xsl\header.xsl</xslFile>
<xslFile>xsl\modifications.xsl</xslFile>
</xslFileNames>
</buildReportBuildPlugin>
<buildLogBuildPlugin />
</buildPlugins>
<securityPlugins>
<simpleSecurity />
</securityPlugins>
</plugins>
</dashboard>