CruiseControl.NET SVN重定位问题

发布于 2024-07-13 01:11:51 字数 1458 浏览 8 评论 0原文

我目前使用 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 技术交流群。

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

发布评论

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

评论(2

旧话新听 2024-07-20 01:11:51

请尝试以下操作:

  1. 停止 CCNet
  2. 验证 ccnet.config 中没有对旧存储库位置的引用
  3. 清除项目的状态文件。 这些文件名为 PROJECTNAME.state。
  4. 清除项目的工作目录。
  5. 重新启动计算机(我假设这将重新启动 CCNet 服务)。

这应该会清除所有内容,并消除 CCNet 中作为问题根源的旧内容。

Try the following:

  1. Stop CCNet
  2. Verify that there are no references to your old repository location in ccnet.config
  3. Blow away the state files for your projects. The files are called PROJECTNAME.state.
  4. Blow away the working directories for your projects.
  5. Restart the machine (which I am assuming will restart the CCNet service).

That should clean out just about everything and should eliminate old stuff in CCNet as the source of the issue.

迟到的我 2024-07-20 01:11:51

“授权失败”意味着身份验证成功(即用户已知),但用户无权访问(即用户未授权)该存储库文件夹(或整个存储库)。

检查您的 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.

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