专注

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

StarTeam是一个流行的源代码管理工具。如何在CruiseControl.NET配置,可以查看它的帮助文档。

配置StarTeam,你只要指定可执行文件,服务器上的项目路径,用户名和密码,还要指定服务器的地址,端口和路径。默认的路径是127.0.0.1,端口是49201,服务器上的项目路径为空。

<sourcecontrol type="starteam">
   <executable>c:\starteam\stcmd.exe</executable>
   <project>ccnet</project>
   <username>buildguy</username>
   <password>buildguypw</password>
   <host>thebuildmachine</host>
   <port>49201</port>
   <path>release2.0</path>
   <autoGetSource>true</autoGetSource>
   <folderRegEx>customRegEx</folderRegEx>
   <fileRegEx>customRegEx</fileRegEx>
   <fileHistoryRegEx>customRegEx</fileHistoryRegEx>
</sourcecontrol>

正则表达式的配置:

CruiseControl.NET利用StarTeam的命令行方式将更新文件上传到源代码管理服务器,folderRegEx,fileRegEx,fileHistoryRegEx 就是用来实现这个目的。

如果只是简单的应用,不需要用到这些特性。

实际上的例子:

<sourcecontrol type="starteam">
     <executable>C:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd.exe</executable>
     <project>SW-data/Projects</project>
     <username>admin</username>
     <password>123</password>
     <host>uswdhsa0star.com</host>
     <port>49209</port> 
     <autoGetSource>true</autoGetSource>    
     <timeout units="minutes">10</timeout>
   </sourcecontrol>

posted on 2012-03-07 15:23  中金黄金  阅读(406)  评论(0编辑  收藏  举报