CCNET1.5配合使用TFS时候会遇到几种问题,记录备忘
1. 提示权限问题, 使用有访问TFS权限的账户运行CCNET的服务,在配置文件中去掉用户名和密码的配置节点。
2. 配置节点中的“workspace”,要为安装TFS的服务器指定一个工作区,并把名字写到这个节点中。不可空。
3. 会出现一个时间转换的错误,但突然又好了,还需要继续观察。
代码
<project name="DealerCommon.Release" webURL="http://ccnet/">
<workingDirectory >D:\CCNETBuild\DealerCommon</workingDirectory>
<artifactDirectory>D:\CCNETBuild\DealerCommon\Log</artifactDirectory>
<labeller type="dateLabeller"></labeller>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
<server>http://192.168.0.1:8080</server>
<domain>192.168.0.1</domain>
<project>$/B2SC/DealerCommon/Src</project>
<workingDirectory>D:\CCNETBuild\DealerCommon</workingDirectory>
<cleanCopy>false</cleanCopy>
<workspace>SERVER-UCARTEST</workspace>
<deleteWorkspace>
false</deleteWorkspace>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory></workingDirectory>
<projectFile>DealerCommon.sln</projectFile>
<buildArgs>/p:Configuration=Release</buildArgs>
<targets>Clean;Rebuild</targets>
<timeout>1000</timeout>
</msbuild>
</tasks>
</project>
<workingDirectory >D:\CCNETBuild\DealerCommon</workingDirectory>
<artifactDirectory>D:\CCNETBuild\DealerCommon\Log</artifactDirectory>
<labeller type="dateLabeller"></labeller>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
<server>http://192.168.0.1:8080</server>
<domain>192.168.0.1</domain>
<project>$/B2SC/DealerCommon/Src</project>
<workingDirectory>D:\CCNETBuild\DealerCommon</workingDirectory>
<cleanCopy>false</cleanCopy>
<workspace>SERVER-UCARTEST</workspace>
<deleteWorkspace>
false</deleteWorkspace>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory></workingDirectory>
<projectFile>DealerCommon.sln</projectFile>
<buildArgs>/p:Configuration=Release</buildArgs>
<targets>Clean;Rebuild</targets>
<timeout>1000</timeout>
</msbuild>
</tasks>
</project>