This is an archived version of the documentation for SonarQube-6.7.
See the Latest Documentation for current functionality.

SVN Plugin

By SonarSource – GNU LGPL 3 – Issue TrackerSources – Supported by SonarSource
More versionsFewer versions
Svn 1.9 – Oct 29, 2018 – SonarQube 7.4+
Correct detection of "new" files in PR, Branch analysis
DownloadRelease notesSvn 1.8 – Jul 17, 2018 – SonarQube 6.7 - 7.3 (Compatible with LTS)
Small improvements and bug fixes
DownloadRelease notesSvn 1.7 – Mar 16, 2018
Minor improvements, reduced plugin size
Release notesSvn 1.6 – Oct 20, 2017
Support of branches
Release notesSvn 1.5 – Aug 01, 2017
Support SVN 1.9
Release notesSvn 1.4 – Jan 26, 2017
Add recursive autodetection of SVN working copy
Release notesSvn 1.3 – Mar 14, 2016
Support SVN+SSH authentication using private key
Release notesSvn 1.2 – Sep 01, 2015
Blame working copy revision, update to SVNKit 1.8.10
Release notesSvn 1.1 – Apr 23, 2015
Use SVNKit and do not fail on uncommited files
Release notesSvn 1.0 – Feb 26, 2015
Initial standalone release of SVN plugin for SQ 5.1+
Release notes

Description

Implements SCM dependent features of SonarQube for Subversion projects.
Subversion 1.6 to 1.9.x are supported.

Usage

Install the plugin in SonarQube. Auto-detection will works if there is a .svn folder somewhere in parent hierarchy of the project root. Otherwise you can force the provider using -Dsonar.scm.provider=svn.

You can also configure some optional properties:

Key

Description

Default value

sonar.svn.username

Username to be used for SVN server or SVN+SSH authentication

sonar.svn.password.secured

Password to be used for SVN server or SVN+SSH authentication

sonar.svn.privateKeyPath

Path to private key file used for SVN+SSH authentication instead of password

sonar.svn.passphrase.secured

Optional passphrase of your private key file

Known issues

If you get errors like:

Caused by: org.tmatesoft.svn.core.SVNException: svn: E200007: Retrieval of mergeinfo unsupported by 'https://pmd.svn.sourceforge.net/svnroot/pmd/trunk/pmd/src/main/java/net/sourceforge/pmd/AbstractConfiguration.java';

It means that the SVN server is not advertising the 'mergeinfo' capability. You can check the advertised capabilities by simply connecting to it:

  telnet <svn_server> 3690

Often this is because your SVN server is not >= 1.5 or your project was not properly migrated after a server upgrade. It could also be a misconfiguration of the server.

You should try to run svnadmin upgrade on the server. For more information, please read https://subversion.apache.org/docs/release-notes/1.5.html#repos-upgrades.

Developer information

The plugin uses SVNKit internally.

SonarQube SVN Plugin

SVNKit

1.1

1.8.7

1.2

1.8.10

1.3

1.8.11

1.4

1.8.11

1.5

1.8.15

1.6

1.9.0