Jenkins错误svn:E180001:无法打开到URL的ra_local会话

时间:2014-03-04 18:17:22

标签: svn jenkins

我正在尝试使用jenkins配置svn,但我得到以下错误。是否有任何许可?

Unable to access file:///C:/TestProject/ : svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///C:/TestProject/'

以下是Jenkins中显示的堆栈跟踪:

Caused by: svn: E180001: Unable to open an ra_local session to URL
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
    at org.tmatesoft.svn.core.SVNErrorMessage.wrap(SVNErrorMessage.java:407)
    ... 69 more
Caused by: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:171)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:126)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:760)
    ... 68 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:782)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:758)
    ... 68 more
Caused by: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:171)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:126)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:781)

2 个答案:

答案 0 :(得分:3)

对此特定错误消息进行了一些调查(虽然很难说这是否是对用户特定问题的回答),但我确定一个原因是vanilla Jenkins安装中的默认SVN插件,特别是如果一个是使用最新的TortoiseSVN,它附带SVN 1.8。

如果在撰写本文时升级到the latest version of the SVN plugin,v2.5,则可以看到support for SVN 1.8 has been included。另外,不要忘记set the SVN version number within Jenkins。请注意,最好在升级后从Jenkins工作区中删除项目目录,因为工作区的Error: Error executing task CheckDuplicateJavaLibraries: Could not find file "/Users/..../Library/Developer/Xamarin/android-sdk-macosx/extras/android/support/multidex/library/libs/android-support-multidex.jar". (Test) 目录中可能存在过时的数据。

这至少解决了我的问题。

答案 1 :(得分:1)

授予jenkins对存储库目录的所有权。这可能是矫枉过正,但出于演示目的,它还可以。

我是一个Linux用户,所以在Windows管理员上不太热,但this可能有助于改变所有权。