Java – Jenkins build fails with svnexception

I'm trying to run Jenkins build Here is my configuration

Jenkins version: 1.445 deployment: as war Java: 1.7 (server 64 bit) Tomcat ver: 7.0 twenty-three

It gives the following error:

Started by user jenkins-admin
Updating https://myrepo.mycompany.com/svn/repos/myrepo
ERROR: Failed to update https://myrepo.mycompany.com/svn/repos/myrepo
    org.tmatesoft.svn.core.SVNException: svn: OPTIONS /svn/repos/myrepo Failed
    at org.tmatesoft.svn.core.internal.io.dav.http.httpconnection.request(httpconnection.java:298)
    at org.tmatesoft.svn.core.internal.io.dav.http.httpconnection.request(httpconnection.java:283)
    at org.tmatesoft.svn.core.internal.io.dav.http.httpconnection.request(httpconnection.java:271)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:148)
    at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:342)
    at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:330)
    at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:535)
    at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401)
    at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:135)
    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136)
    at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:787)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:768)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:752)
    at hudson.FilePath.act(FilePath.java:783)
    at hudson.FilePath.act(FilePath.java:765)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:742)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:684)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:571)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:460)
    at hudson.model.Run.run(Run.java:1404)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS /svn/repos/myrepo Failed
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:146)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:89)
    ... 27 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS request Failed on '/svn/repos/myrepo'
svn: unkNown host
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)

The problem is that it won't fail all the time However, it failed 70 - 80% of the time The credentials and URL of SVN repo are correct

Update: I've tried all the possibilities now The problem remains I try to use JDK 6 (32-bit and 64 bit) The problem won't happen

I'm working on RHEL 5.6 Can I help you?

Solution

I note this line:

Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS request Failed on '/svn/repos/myrepo'
svn: unkNown host

Whenever I encounter a Jenkins problem, I will log in to the Jenkins system as the user running Jenkins, go to the internal working directory of Jenkins, and try to do what Jenkins tries to do from the command line (such as updating my working directory) This can usually help you point out a specific error

Try running several updates from Jenkin's working directory to see if you receive the same error If you do, it may indicate a network problem (unknown host)

If you can run the update in the working directory on the Jenkins server in the working directory of the job, the problem may be svnkit itself What versions of subversion and svnkit are you using?

Try deleting the working directory to see if a clean checkout helps

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>