Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins: invalid version of SVN working copy

Tags:

svn

jenkins

Our build server runs Jenkins 1.502 with Subversion plugin upgraded to version 1.45. This plugin uses svnkit-1.7.6-jenkins-1.jar.

Also we have SVN client 1.7.8 installed.

Jenkins successfully checks out source code from SVN repository. But when I go to workspace directory and try to run some svn command manually, it fails:

# cd /var/lib/jenkins/jobs/myproject/workspace/
# svnversion
svn: E155036: Working copy '/var/lib/jenkins/jobs/myproject/workspace' is too old (format 8, created by Subversion 1.4)

The error message indicates that working copy was created by SVN 1.4, but version of svnkit is 1.7.6. How could it be?

I searched entire file system, there are no any other svnkit-*.jar files.

like image 548
Andrey Avatar asked Feb 27 '13 08:02

Andrey


2 Answers

There is an option in jenkins to tell svn which working copy format to use(manage jenkins > configure system), look for a 'Subversion Workspace Version' pulldown - it's likely set to 1.4. change it to the latest version in the list.

like image 62
thekbb Avatar answered Nov 08 '22 19:11

thekbb


I wasn't able to downgrade subversion to 1.7. (due to dependencies).

Another way to fix this is add a "Pre Step / Execute Shell" with command svn upgrade respectively cd trunk; svn upgrade in the job configuration.

This works with subversion 1.8.8 on Ubuntu 14.04.

like image 29
stacker Avatar answered Nov 08 '22 21:11

stacker