I\'ve updated the Subversion plugin of jenkins to version 2.2
Now i get following error for repos which build the first time after the upgrade and for repos where someth
I was getting the exactly same exception and it was because of using build parameter in repository path, e.g.:
http://reposerver/svn/project/${SVN_BRANCH}
even in case ${SVN_BRANCH} was correctly set to 'trunk' It was not working
when I changed repository path to:
http://reposerver/svn/project/trunk
everything works fine now
This issue occurred after upgrading svn plugin from 1.54 to 2.2, so it looks like there is some bug in new version of svn jenkins plugin
When you update subversion plugin, you should do one of the below.
or
I'd like to emphasize a point in mikepenz' answer: In the text field Realm of your job configuration (after clicking Add additional credentials...) you don't enter merely your SVN realm but your realm and the complete URL of your external repo. This tripped me up.
So this part of your job config ends up looking like this:
Edit:
As it turns out, the above did not improve the situation: The credential error still occurred and moreover commits to external repos did not trigger Jenkins to build the software.
I followed the recommendation here (that also mentions security concerns with the approach described above) and used modules in Jenkins for my external repositories.
This is how my module configuration looks for an external repo:
Ok after many comments on the official bug report we were able to solve this issue.
So to get it working you have to update to the newest 2.3-snaptshot of the subversion plugin, which can be found here:
https://jenkins.ci.cloudbees.com/job/plugins/job/subversion-plugin/
(Download the .hpi file and install it on your jenkins)
<prot://ip:port > Company Subversion Repository
)svn --username {username} --password {password} checkout prot://ip:port/svn/repo
<-- you can cancel this after it has started the checkoutfind ~/.subversion/auth/svn.simple/ -type f -exec cat {} + | grep -A 2 realmstring
buildmaster/****** (<prot://ip:port> Company Subversion Repository)
NOTE : If you are using svn+ssh, your realm would look like "svn+ssh://server-name" without double-quotes. No pointy brackets, port or realm name needed.
I had same error. Since the svn repo was password protected. when I add the credential and use it for svn check out, it works fine.