CruiseControl 安装配置

https://sourceforge.net/projects/ccnet/files/CruiseControl.NET%20Releases/

一个完整的配置文件(VS2010的解决方案)其他版本的项目注意修改执行文件路径。

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <project name="my1.ecvv.com" description="ecvv :my1.ecvv.com">
    <webURL>http://www.ecvv.com/</webURL>
    <workingDirectory>D:\WebView\my1</workingDirectory>
    <triggers>
      <intervalTrigger name="continuous" seconds="180" buildCondition="ForceBuild" initialSeconds="50"/>
    </triggers>
    <sourcecontrol type="external">
      <executable>TortoiseProc.exe</executable>
      <args> /command:update /path:"D:\WebView\my1\" /closeonend:1</args>
      <autoGetSource>false</autoGetSource>
      <labelOnSuccess>false</labelOnSuccess>
    </sourcecontrol>
    <publishers>
      <devenv>
        <solutionfile>my1.sln</solutionfile>
        <configuration>Debug</configuration>
        <buildtype>Build</buildtype>
        <executable>C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com</executable>
      </devenv>
      <xmllogger />
      <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
      <email mailport="25" includeDetails="TRUE" mailhostUsername="my_ccnet@my.com" mailhostPassword="Myc521" useSSL="FALSE">
        <from>my_ccnet@my.com</from>
        <mailhost>smtp.exmail.qq.com</mailhost>
        <users>
          <user name="my1" group="buildmaster" address="my1@my.com" />
          <user name="my2" group="developers" address="my2@my.com" />
        </users>
        <groups>
          <group name="developers">
            <notifications>
              <notificationType>Failed</notificationType>
              <notificationType>Fixed</notificationType>
            </notifications>
          </group>
          <group name="buildmaster">
            <notifications>
              <!--<notificationType>Always</notificationType>-->
              <notificationType>Failed</notificationType>
              <notificationType>Fixed</notificationType>
            </notifications>
          </group>
        </groups>
        <converters>
          <regexConverter find="$" replace="@my.com" />
        </converters>
        <modifierNotificationTypes>
          <NotificationType>Failed</NotificationType>
          <NotificationType>Fixed</NotificationType>
        </modifierNotificationTypes>
        <subjectSettings>
          <subject buildResult="StillBroken" value="Build is still broken for {CCNetProject}" />
        </subjectSettings>
      </email>
    </publishers>
  </project>
</cruisecontrol>

  

posted @ 2017-12-05 19:45  BB_Coder  阅读(688)  评论(0编辑  收藏  举报