CruiseControl.NET SVN重定位问题
我目前使用 SVN 设置 CruiseControl.NET,以自动从存储库获取代码源。 在我们的 SVN 服务器出现问题后 - 我为其重新创建了一个不同的 SVN 位置,并更改了它在 ccnet.config 文件中的位置。 这导致 CruiseControl.NET 仍然试图从旧的 SVN 存储库中获取它。
我已尝试重新启动 CruiseControl.NET 服务、删除工件和与项目相关的任何其他文件并更改项目名称,但它仍然尝试从错误的 SVN 位置获取代码。
我收到的错误是这样的:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation
failed:
svn: OPTIONS of 'http://local.oldsvnserver/svn/OldRepository': authorization
failed (local.oldsvnserver).
Process command: C:/Program Files (x86)/Subversion/svn.exe update --username username--password password --non-interactive --no-auth-cache at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetSource(IIntegrationResult result) at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
新的源代码控制块在哪里:
<sourcecontrol type="svn">
<executable>C:/Program Files (x86)/Subversion/svn.exe</executable>
<trunkUrl>http://local.newsvnswever/svn/SiteRepository/</trunkUrl>
<username>username</username>
<password>password</password>
<autoGetSource>true</autoGetSource>
<workingDirectory></workingDirectory>
</sourcecontrol>
任何帮助都会很棒,
ChrisNTR
I currently have CruiseControl.NET set up with SVN to automatically grab the code source from the repository. After having a problem with our SVN server - I recreated a different SVN location for it and changed the location of it in the ccnet.config file. This caused problems with CruiseControl.NET still trying to grab it from the old SVN repository.
I have tried restarting the CruiseControl.NET service, deleting artifacts and any other files related to the project and changing the project name but it still tries to grab the code from the wrong SVN location.
The error I'm getting is this:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation
failed:
svn: OPTIONS of 'http://local.oldsvnserver/svn/OldRepository': authorization
failed (local.oldsvnserver).
Process command: C:/Program Files (x86)/Subversion/svn.exe update --username username--password password --non-interactive --no-auth-cache at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetSource(IIntegrationResult result) at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
where the new sourcecontrol block is:
<sourcecontrol type="svn">
<executable>C:/Program Files (x86)/Subversion/svn.exe</executable>
<trunkUrl>http://local.newsvnswever/svn/SiteRepository/</trunkUrl>
<username>username</username>
<password>password</password>
<autoGetSource>true</autoGetSource>
<workingDirectory></workingDirectory>
</sourcecontrol>
Any help would be awesome,
ChrisNTR
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请尝试以下操作:
这应该会清除所有内容,并消除 CCNet 中作为问题根源的旧内容。
Try the following:
That should clean out just about everything and should eliminate old stuff in CCNet as the source of the issue.
“授权失败”意味着身份验证成功(即用户已知),但用户无权访问(即用户未授权)该存储库文件夹(或整个存储库)。
检查您的 svn 服务器配置。
"authorization failed" means that the authentication was successful (i.e., the user is known) but that the user doesn't have access (i.e. the user is not authorized) to that repository folder (or the whole repository).
Check your svn server configuration.