2012-09-30 99 views
0

如何根據CruiseControl.NET中Team Foundation Server的構建標籤提取代碼。基於TFS標籤的CC.NET簽出

<sourcecontrol type="vsts" autoGetSource="true" applyLabel="true"> 
    <server>http://tfs.internal.com:8080/</server> 
    <username>*********</username> 
    <password>*********</password> 
    <domain>corp</domain> 
    <project>$/Code</project> 
    <workingDirectory>D:\BuildServer\Lane1\SourceCode\</workingDirectory> 
    <cleanCopy>false</cleanCopy> 
</sourcecontrol> 

回答

1

根據the documentation爲CruiseControl.NET TFS插件(從CodePlex上):

<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</deleteWorkspace> 
</sourcecontrol> 

我不認爲這是一個選項。

我確實看過一般的TFS sourcecontrol block documentation here,您可能可以將標籤作爲參數傳遞給可執行文件。我從來沒有用Visual Studio試過,但是也許你可以弄清楚如果你可以使用dynamicValues作爲參數來指定你的標籤和編譯器。如果沒有,我不認爲CruiseControl.NET可以支持這些TFS功能。