这东西找资料麻烦,记录下。。。
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
<project>
<name>Cardiac</name>
<workingDirectory>F:/NightlyBuild/Source</workingDirectory>
<webURL>http://localhost/ccnet</webURL>
<triggers>
<!--scheduleTrigger time="22:00" buildCondition="ForceBuild">
<weekDays>
<weekDay>Monday</weekDay>
<weekDay>Tuesday</weekDay>
<weekDay>Wednesday</weekDay>
<weekDay>Thursday</weekDay>
<weekDay>Sunday</weekDay>
</weekDays>
</scheduleTrigger>-->
<intervalTrigger seconds="30" buildCondition="ForceBuild"/>
</triggers>
<labeller type="dateLabeller" />
<sourcecontrol type="svn" autoGetSource="true">
<trunkUrl>http://...</trunkUrl>
<executable>C:/Program Files (x86)/Subversion/bin/svn.exe</executable>
<workingDirectory>F:/NightlyBuild/Source</workingDirectory>
<username>hx</username>
<password>hx</password>
</sourcecontrol>
<tasks>
<exec>
<executable>F:/NightlyBuild/Source/xxx.bat</executable>
</exec>
<msbuild>
<executable>C:/WINDOWS/Microsoft.NET/Framework/v3.5/MSBuild.exe</executable>
<workingDirectory>F:/NightlyBuild/Source/项目sln所在目录</workingDirectory>
<projectFile>xxx.sln</projectFile>
<logger>F:/NightlyBuild/CruiseControl.NET/server/ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<buildArgs>/t:rebuild /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=F:/NightlyBuild/CruiseControl.NET/log/xxxLog.txt</buildArgs>
<timeout>1900</timeout>
</msbuild>
</tasks>
<publishers>
<email from="000000@qq.com" mailhost="smtp.qq.com" mailport="25" includeDetails="TRUE" mailhostUsername="123123123" mailhostPassword="123123123">
<users>
<user name="laoban" group="boss" address="laoban@xxx.com"/>
<user name="chengxuyuan" group="developers" address="chengxuyuan@xxx.com"/>
</users>
<groups>
<group name="boss">
<notifications>
<notificationType>Always</notificationType>
</notifications>
</group>
<group name="developers">
<notifications>
<notificationType>Always</notificationType>
</notifications>
</group>
</groups>
<attachments>
<file>F:/NightlyBuild/CruiseControl.NET/log/xxxLog.txt</file>
</attachments>
</email>
</publishers>
</project>
</cruisecontrol>