2015-06-19 87 views
0

我試圖從SVN簽出代碼,它不能在第一次使用。但在第二次嘗試中,同樣的項目工作正常。請指導。錯誤如下:Jenkns的SVN Checkout錯誤

Started by user anonymous 
Building remotely on ARA (Demo) in workspace C:\Workspace-Jenkins\workspace\SVN-Maven-demo 
Switching from file:///C:/SVN_Repo/Developer Directory to file:///C:/SVN_Repo/Developer%20Directory 
Switching to file:///C:/SVN_Repo/Developer Directory at revision '2015-06-19T18:07:31.577 +0530' 
U   WebContent\home.jsp 
At revision 80 
hudson.util.IOException2: revision check failed on file:///C:/SVN_Repo/Developer Directory 
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:196) 
    at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:123) 
    at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:725) 
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:860) 
    at hudson.scm.SCM.checkout(SCM.java:484) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1265) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) 
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 
    at hudson.model.Run.execute(Run.java:1759) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
    at hudson.model.ResourceController.execute(ResourceController.java:89) 
    at hudson.model.Executor.run(Executor.java:240) 
Caused by: org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open an ra_local session to URL 
svn: E180001: Unable to open repository 'file:///C:/SVN_Repo/Developer%20Directory' 
svn: E180001: Unable to open repository 'file:///C:/SVN_Repo/Developer%20Directory' 
    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.openRepository(FSRepository.java:796) 
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRevision(FSRepository.java:121) 
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118) 
    at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:184) 
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45) 
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:160) 
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35) 
    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) 
    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1259) 
    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) 
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:968) 
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:873) 
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:184) 
    ... 12 more 
+0

您可以嘗試刪除文件夾名稱中的空格嗎? (Developer_Directory而不是開發人員目錄) –

+0

嗨布魯諾。它沒有工作。 –

+0

嗨:)如果你進入目錄(在生成機器上),你能更新你的SVN文件夾嗎? (cmd - > svn up) –

回答

0

準確地比較你的時間詹金斯服務器和SVN服務器之間時區。它們應該非常接近同步(使用一些LDAP或NTP同步)。