Reputation: 275
Hi I am having problem connecting my jenkins SVN with https protocol. I can access other SVN repository with http protocol but not with https. For some reason, my svn repo must use https;
I can't seem to find solution on how can jenkins checkout/update from the repository. The errors is something like this
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:291)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:276)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:264)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
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:1001)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178)
Any suggestions?
Upvotes: 2
Views: 4004
Reputation: 22957
I had a similar problem once, as @milebelt wrote above, try to connect to the SVN server from within the machine jenkins runs on (with the same user jenkins runs as) with a SVN client (you must install one if it's not installed, though many distros come with one preinstalled)
This will create a certificate and keys under ~/.svn
(the defauly folder) if i remember correctly.
Later when you run the build from Jenkins, it will use the key the svn client created before to authenticate.
Upvotes: 3