自动build服务器 CruiseControl.NET

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->


  <project name="V"
           description="V config">

    <triggers>
	<!-- check the source control every X time for changes, 
	     and run the tasks if changes are found -->
      <intervalTrigger
               name="continuous"
               seconds="30"
               buildCondition="IfModificationExists"
               initialSeconds="5"/>
    </triggers>

   <sourcecontrol 	type="svn" >
    <trunkUrl>https://192.168.1.2/svn/V/trunk</trunkUrl>
    <workingDirectory>e:/V</workingDirectory>
    <executable>C:/CollabNet/svn.exe</executable>
    <username>builder</username>
    <password>!</password>
  </sourcecontrol> 
	
    <tasks>
		 
<msbuild>
 <executable>C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe</executable>
 <workingDirectory>e:/V/V</workingDirectory>
 <projectFile>V.sln</projectFile>
 <buildArgs>/p:Configuration=Release</buildArgs>
 <targets></targets>
 <timeout>3600</timeout>
 <logger>C:Program Files (x86)CruiseControl.NETserverThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<exec>
  <executable>E:SetupBuildToolsfilecopy.cmd</executable>
        <baseDirectory>E:VVRelease</baseDirectory>
			  <buildArgs></buildArgs>
			  <buildTimeoutSeconds>3600</buildTimeoutSeconds>
			  <description>copy</description>
		  </exec>

    </tasks>

    <publishers>
      <xmllogger />
      <artifactcleanup cleanUpMethod="KeepLastXBuilds"
                       cleanUpValue="50" />
 <buildpublisher>
         <sourceDir>E:VVReleaseOutPut</sourceDir>
         <publishDir>\192.168.1.2VBuild</publishDir>
         <useLabelSubDirectory>true</useLabelSubDirectory>
 </buildpublisher>
    </publishers>

<labeller type="dateLabeller" />
  </project>

</cruisecontrol>

  用到。net 3.5 非常好用

原文地址:https://www.cnblogs.com/ahuo/p/3205222.html