收到 CruiseCcontrol.Net 错误消息“svn:无法获取用户名或密码”

发布于 2024-12-27 14:36:42 字数 4385 浏览 1 评论 0原文

我已经在 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)



<项目>
<名称>我的注册表
<类别>持续构建
C:\CruiseControlBuilds\artifacts
http://ENB0111D46842S/ccnet/server/local/project/MyRegistry/ViewProjectReport.aspx
<触发器>


<状态类型=“状态”目录=“C:\CruiseControlBuilds\State”/>
<贴标机类型=“ assemblyVersionLabeller”>
<主要>2
<次要>1
false

2

<可执行文件>svn
<工作目录>C:\MyRegistry\trunk
svn://unit-e-2/MyRegistry/trunk

<任务>

<可执行文件>c:\Windows\Microsoft.Net\Framework\v3.5\MSBuild.exe
<工作目录>C:\MyRegistry\trunk
MyRegistry.sln
/t:Rebuild /p:Configuration=Release /v:m
<目标>清理;构建
<超时>1200


<出版商>
<合并>
<文件>
<文件>C:\CruiseControlBuilds\artifacts\msbuild-results.xml





<项目>
<名称>将学生信息发送至 NHHG
<类别>持续构建
C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG
http://ENB0111D46842S/ccnet/server/local/project/SendStudentInfoToNHHG/ViewProjectReport.aspx
<触发器>


<状态类型=“状态”目录=“C:\CruiseControlBuilds\State”/>
<贴标机类型=“ assemblyVersionLabeller”>
<主要>2
<次要>1
false

2

<可执行文件>svn.exe
<工作目录>C:\SendStudentInfoToNHHG\trunk
svn://unit-e-2/SendStudentInfoToNHHG/trunk

<任务>

<可执行文件>c:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe
<工作目录>C:\SendStudentInfoToNHHG\trunk\SendStudentInfoToNHHG
<项目文件>SendStudentInfoToNHHG.sln
/t:Rebuild /p:Configuration=Release /v:m
<目标>清理;构建
<超时>1200


<出版商>
<合并>
<文件>
<文件>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG\msbuild-results.xml





I have set up a second project in CCNet and on the second project I get the following error

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

I have run the above command from the command line from the working directory of the project and it runs as expected. Also the originals project still builds and doesn't have any errors.

I have also checked all the paths in the config file and they are correct

The versions of the software are
CCNet Version : 1.6.7981.1
SVN Version 1.6.13

Does anyone have any suggestions on what could be the cause of the problem?

[Edit]
The ccnet.config file (sorry about the formatting Markdown is not playing nice with all the 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="continuous" seconds="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>Continuous Builds</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</major>
<minor>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>Clean;Build</targets>
<timeout>1200</timeout>
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG\msbuild-results.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
</project>
</cruisecontrol>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只怪假的太真实 2025-01-03 14:36:42

我建议以不同的用户帐户运行 ccnet windows 服务,运行 svn info svn://unit-e-2,然后输入用户名和密码来缓存它们。

请参阅此处 DilbertDave 的回答:

I recommend running the ccnet windows service as a different user account, run svn info svn://unit-e-2, and then enter the username and password to cache them.

See DilbertDave's answer here:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文