代码改变世界

.NET环境下每日集成(5):CruiseControl.Net 源码管理器块

2008-04-24 10:02  敏捷的水  阅读(2618)  评论(1编辑  收藏  举报

1. CruiseControl.Net支持非常多的源码管理器,下面是官方的一些介绍

image

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服务器的用户名,不设将使用登录系统的用户名和密码 string false *  
password 连接到TFS服务器的密码,不设将使用登录系统的用户名和密码 string false *  
domain TFS服务器的域名 string false *  
autoGetSource 是否自动获得最新的源码 bool false false
applyLabel 是否应用标签当编译时 bool false false
workingDirectory 获得最新源码所放的路径,最好和上面的project的workingDirectory一致,因为编译时取自project的workingDirectory,不然每次只获得最新,编译的还是原来的 string false CCNet project working directory
cleanCopy 获取最新时是否清除workingDirectory下的所有文件 bool false false
project 你想获得TFS哪个目录下的内容 string false
workspace 每一个项目的特别标志,多项目时用 string false "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.
bool false false