我在 CCNet 中设置了第二个项目,在第二个项目中出现以下错误
Source control operation failed: svn: Can't get username or password
. Process command: svn log svn://unit-e-2/*<projectName>* -r
"{2012-01-13T20:15:50Z}:{2012-01-16T10:38:45Z}" --verbose --xml
--no-auth-cache --non-interactive
我已经从项目工作目录的命令行运行了上述命令,它按预期运行。此外,原始项目仍在构建并且没有任何错误。
我还检查了配置文件中的所有路径,它们是正确的
软件版本为
CCNet 版本:1.6.7981.1
SVN 版本 1.6.13
有没有人对可能导致问题的原因有任何建议?
[编辑]
ccnet.config 文件(很抱歉格式化 Markdown 不能与所有 xml 配合使用)
<?xml version="1.0" encoding="utf-8" ?>
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project>
<name>MyRegistry</name>
<category>Continuous Builds< /category>
<artifactDirectory>C:\CruiseControlBuilds\artifacts</artifactDirectory>
<webURL>http://ENB0111D46842S/ccnet/server/local/project/MyRegistry/ViewProjectReport.aspx</webURL>
<triggers>
<intervalTrigger name="连续"秒="60" buildCondition="IfModificationExists" />
</triggers>
<state type="state" directory="C:\CruiseControlBuilds\State" />
<labeller type="assemblyVersionLabeller">
<major>2</major>
<minor>1</minor>
<incrementOnFailure>false</incrementOnFailure>
</labeller>
<modificationDelaySeconds>2</modificationDelaySeconds>
<sourcecontrol type="svn">
<executable>svn</executable>
<workingDirectory>C:\MyRegistry\trunk</workingDirectory>
< trunkUrl>svn://unit-e-2/MyRegistry/trunk</trunkUrl>
< /sourcecontrol>
<tasks>
<msbuild>
<executable>c:\Windows\Microsoft.Net\Framework\v3.5\MSBuild.exe </executable>
<workingDirectory>C:\MyRegistry\trunk</workingDirectory>
<projectFile>MyRegistry.sln</projectFile>
<buildArgs>/t:Rebuild /p:Configuration=Release /v:m</buildArgs>
<targets>Clean;Build</targets>
<timeout>1200</timeout>
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>C:\CruiseControlBuilds\artifacts\msbuild-results.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
</project>
<project>
<name >SendStudentInfoToNHHG</name>
<category>持续构建</类别>
<artifactDirectory>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG</artifactDirectory>
<webURL>http://ENB0111D46842S/ccnet/server/local/project/SendStudentInfoToNHHG/ViewProjectReport.aspx</webURL>
<triggers>
<intervalTrigger name="continuous " seconds="60" buildCondition="IfModificationExists" />
</triggers>
<state type="state" directory="C:\CruiseControlBuilds\State" />
<labeller type="assemblyVersionLabeller">
<major>2</主要>
<次要>1</minor>
<incrementOnFailure>false</incrementOnFailure>
</labeller>
<modificationDelaySeconds>2</modificationDelaySeconds>
<sourcecontrol type="svn">
<executable>svn.exe</executable>
<workingDirectory>C:\SendStudentInfoToNHHG\trunk</workingDirectory>
<trunkUrl>svn://unit-e-2/SendStudentInfoToNHHG/trunk</trunkUrl >
</sourcecontrol>
<tasks>
<msbuild>
<executable>c:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\SendStudentInfoToNHHG\trunk\SendStudentInfoToNHHG</workingDirectory >
<projectFile>SendStudentInfoToNHHG.sln</projectFile>
<buildArgs>/t:Rebuild /p:Configuration=Release /v:m</buildArgs>
<targets>清理;构建</targets>
<timeout>1200</timeout>
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG\msbuild-results.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
</project>
</cruisecontrol>