Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

Compatibility matrix

All SCM providers currently require the native executable to be installed on the box. For example, for Subversion projects svn executable must be available.

(tick) - supported
(question) - not tested
(error) - not implemented

Features

This plugin collects information from SCM.

SCM Metrics in filter results

Dashboard widget

Source code viewer

Usage & Installation

  1. Install from Update Center or download the JAR into the directory /extensions/plugins/
  2. Restart Sonar
  3. Define the SCM URL of your project (see SCM URL Format).
    Example for Maven pom.xml :

    Or you can use Project Setting - SCM URL.
    Or specify it via property sonar.scm.url.

  4. Go to Global/Project Settings
    1. Enable plugin. This plugin disabled by default, because can dramatically increase analysis time of your project
    2. Specify User (sonar.scm.user.secured) and Password (sonar.scm.password.secured) if needed; if specified then developerConnection will be used, otherwise connection
  5. Launch a new quality analysis and the metrics will be fed

 

Performance

The first analysis of a project with version 1.4 will last longer than the subsequent analyses.

 

Known problems and limitations

Subversion "Server certificate verification failed: issuer is not trusted"

Add following to .subversion/servers:

CVS anonymous access not working "org.apache.maven.scm.ScmException: password is required."

Try to set empty password for repository in .cvspass. For example :

I use Git and the annotated sources sometimes display a wrong/old author name

The plugin uses 'git blame' command to find out the author of each line. Because a user can commit with different author name/email, it is advised to have a .mailmap file at the root of the repository. This file is used by 'git blame' to find out canonical name/email of each user.

See http://git-scm.com/docs/git-blame#_mapping_authors

Changelog

Release 1.4 (15 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1896 Always run the SCM Activity plugin with or without local changes. Major Closed Fixed
Improvement SONARPLUGINS-1872 Parallel execution of SCM commands Major Closed Fixed
Task SONARPLUGINS-1871 Stop using the changelog/revision to determine if the blame information should be updated on a source file Major Closed Fixed
Improvement SONARPLUGINS-1870 Optimisation of initialisation for project with a lot of changesets Major Closed Fixed
Bug SONARPLUGINS-1766 Can't integrate SCM Activity into Jenkins with a non-Maven java build Major Closed Fixed
Improvement SONARPLUGINS-1561 Improve loading of changelog on big projects Major Closed Fixed
Improvement SONARPLUGINS-1122 Changelog extractor uses path to Sonar project configuration file Major Closed Fixed
Bug SONARPLUGINS-1157 SCM Activity plugin fails detecting the revision with mercurial Major Closed Fixed
Bug SONARPLUGINS-1308 SCM Activity Plugin doesn't work after having changed our SCM Major Closed Fixed
Bug SONARPLUGINS-1283 CommandLineException: Missing/wrong number of arguments Major Closed Fixed
Bug SONARPLUGINS-1291 Unable to retrieve TFS changelog Major Closed Fixed
Improvement SONARPLUGINS-1095 Upgrade to Maven SCM 1.7 Major Closed Fixed
Task SONARPLUGINS-1092 Use API from Maven SCM to validate URL instead of own implementation Major Closed Fixed
Bug SONARPLUGINS-1094 Scm Activity no longer works for ClearCase Major Closed Fixed
Bug SONARPLUGINS-1144 Allow blank password for scm user Minor Closed Fixed

Release 1.3 (6 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-899 Upgrade to Maven SCM 1.5 Major Closed Fixed
Improvement SONARPLUGINS-1067 Support Mercurial Major Closed Fixed
Improvement SONARPLUGINS-1085 The analysis must not fail on SCM blame errors Major Closed Fixed
Improvement SONARPLUGINS-1083 Improve message when SCM URL is badly formed Major Closed Fixed
Improvement SONARPLUGINS-1082 Server certificate verification failed Major Closed Fixed
Bug SONARPLUGINS-1069 SCM Activity plugin sources documentation link points to invalid location Trivial Closed Fixed

 


Release 1.2 (16 issues)
Type Key Summary Priority Status Resolution
Bug SONARPLUGINS-861 Error parsing blame for git Critical Closed Fixed
Improvement SONARPLUGINS-854 Poor performance Critical Closed Fixed
Improvement SONARPLUGINS-413 Upgrade to Maven SCM 1.4 Major Closed Fixed
New Feature SONARPLUGINS-348 Add commit count for past periods Major Closed Fixed
Improvement SONARPLUGINS-499 Use sonar-plugin packaging Major Closed Fixed
Bug SONARPLUGINS-603 Plugin overwrites local auth credentials Major Closed Fixed
Improvement SONARPLUGINS-601 Support of non-java projects Major Closed Fixed
Improvement SONARPLUGINS-706 Use metrics from Sonar Core Major Closed Fixed
Bug SONARPLUGINS-877 "Last commit" metric wrongly computed Major Closed Fixed
Improvement SONARPLUGINS-882 Group lines by revision Major Closed Fixed
Improvement SONARPLUGINS-1021 Disable Java implementations of CVS and SVN providers Major Closed Fixed
Improvement SONARPLUGINS-1026 Check local modifications only in source directories Major Closed Fixed
Improvement SONARPLUGINS-1025 Rename plugin properties Major Closed Fixed
Improvement SONARPLUGINS-1020 Override the SCM URL defined in Maven Minor Closed Fixed
Improvement SONARPLUGINS-1063 Add the property sonar.scm.verbose Minor Closed Fixed
Improvement SONARPLUGINS-1027 Add the property sonar.scm.ignoreLocalModifications Minor Closed Fixed

Release 1.1 (4 issues)
Type Key Summary Priority Status Resolution
New Feature SONARPLUGINS-373 Support for TFS Major Closed Fixed
New Feature SONARPLUGINS-457 Add Perforce support to the SCM Activity Plugin Major Closed Fixed
New Feature SONARPLUGINS-455 Add support for blame command for Accurev Major Closed Fixed
New Feature SONARPLUGINS-454 Add support for blame command for ClearCase Major Closed Fixed

Release 1.0 (6 issues)
Type Key Summary Priority Status Resolution
Bug SONARPLUGINS-398 CVS implementation does not work anymore Critical Closed Fixed
Task SONARPLUGINS-374 Maven-scm-ext should be Java 1.4 compatible Major Closed Fixed
Improvement SONARPLUGINS-350 Scm Activity data should not be gathered when injecting historical data Major Closed Fixed
Improvement SONARPLUGINS-371 Add a config parameter to specify or override (pom) the SCM information Major Closed Fixed
Bug SONARPLUGINS-368 ScmException while parsing generated java files Major Closed Fixed
New Feature SONARPLUGINS-366 Add violations to blame viewer Major Closed Fixed

Release 0.2 (8 issues)
Type Key Summary Priority Status Resolution
Task SONARPLUGINS-359 Add unit tests for SVN and Git Major Closed Fixed
Improvement SONARPLUGINS-358 Use pure Java implementation for CVS Major Closed Fixed
New Feature SONARPLUGINS-353 Support Bazaar SCM Major Closed Fixed
Improvement SONARPLUGINS-354 Using svn java instead of svn cli Major Closed Fixed
New Feature SONARPLUGINS-351 Enable to gather data from a secured SCM Major Closed Fixed
Improvement SONARPLUGINS-352 Source code data should not appear when plugin is not activated or is incorrectly configured Major Closed Fixed
New Feature SONARPLUGINS-331 Support Mercurial SCM Major Closed Fixed
New Feature SONARPLUGINS-330 Support CVS SCM Major Closed Fixed

Release 0.1 (6 issues)
Type Key Summary Priority Status Resolution
New Feature SONARPLUGINS-335 Revision metric Major Closed Fixed
New Feature SONARPLUGINS-333 Show author of each line within source code Major Closed Fixed
New Feature SONARPLUGINS-334 Last commit metric Major Closed Fixed
New Feature SONARPLUGINS-329 Support Git SCM Major Closed Fixed
New Feature SONARPLUGINS-328 Support Subversion SCM Major Closed Fixed
New Feature SONARPLUGINS-322 Create a plugin to report activity in SCM Major Closed Fixed

Labels
  • None