1. CruiseControl.Net支持非常多的源码管理器,下面是官方的一些介绍
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5iYtVHa09VZnFWbp9CXEJER48Fdl5kLs9mc052bDV2cpVncDVDVF5kLvwlclRXaydVZ2lGTzd3bk5WaX9CXz5WYmN3ZvxmYuN2Lc12bj91cn9Gbi52YvwVbvNmLzd2bsJmbj5ycldWYtl2Lc9CX6MHc0RHaiojIsJye.png)
2. 安装完后有对应的文档,这里我主要说一下TFS的配置
要想使用TFS,还必须安装一个插件前面文章我已经提过,下面是示例源码
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="true">
<server>http://my_team_foundation_server:8080</server>
<username>my_user</username>
<password>my_password</password>
<domain>my_domain</domain>
<project>$/Foobar</project>
<workingDirectory>c:\projects\Foobar</workingDirectory>
<cleanCopy>false</cleanCopy>
<workspace>my_workspace_name</workspace>
<deleteWorkspace>false</workspace>
</sourcecontrol>
Node
Description
Type
Required
Default
server
tfs服务器地址
string
true
null
username
连接到TFS服务器的用户名,不设将使用登录系统的用户名和密码
password
连接到TFS服务器的密码,不设将使用登录系统的用户名和密码
domain
TFS服务器的域名
autoGetSource
是否自动获得最新的源码
bool
false
applyLabel
是否应用标签当编译时
workingDirectory
获得最新源码所放的路径,最好和上面的project的workingDirectory一致,因为编译时取自project的workingDirectory,不然每次只获得最新,编译的还是原来的
CCNet project working directory
cleanCopy
获取最新时是否清除workingDirectory下的所有文件
project
你想获得TFS哪个目录下的内容
workspace
每一个项目的特别标志,多项目时用
"CCNET"
deleteWorkspace
自动获取源码后是否删除workspace,因为TFS Server可以记住状态,只发送修改或删除的文件(这个理解不知是否正确?)
Determines if the workspace should be deleted after source is downloaded using the autoGetSource flag. It is much more efficient to leave the workspace because that way the TFS server can remember the state of the files on the CruiseControl.NET server and only send files that have changed or inform the server of deleted / renamed files.
本文转自敏捷的水博客园博客,原文链接http://www.cnblogs.com/cnblogsfans/archive/2008/04/24/1168761.html如需转载请自行联系原作者
王德水