Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Note
titleOn by default
This plugin is enabled by default for all projects. The SCM Activity plugin can be disabled on a project-by-project basis, or disabled globally at Settings > General Settings > SCM Activity and then enabled on a project-by-project basis.

 

Requirements

All SCM providers currently require the native executable to be installed on the server where the SonarQube analysis will run. For example, for projects hosted on a Subversion repository and analysed on a Jenkins server, an svn executable must be available on the Jenkins server (and its slaves if any).

(tick) - supported

(star) - tested by users

...

Information are automatically retrieved from the .git, .svn, etc. folders. Therefore, nothing has to be configured and no configuration will be taken into account.

Configuring the SCM Activity Plugin: SCM other than SVN, Git and Mercurial

...

Forcing the Retrieval of Blame Information

In some cases, it is necessary to retrieve blame information on files that have not been changed (for example when a user has been renamed). To force this retrieval, here are the steps to follow:

Deactivate the SCM Activity plugin at the project level:

 

sonar.scm.enabled = false

  • Run an analysis on your project
  • Reactivate the SCM Activity plugin on the project: sonar.scm.enabled = true
  • Run an analysis on your project
  •  

    Info

    Note that a property should be added sooner or later to explicitly force this retrieval or not. See SONARPLUGINS-2359.

     

    Troubleshooting

    ...

    The simplest workaround is to always set autocrlf to "false" on the box doing the SonarQube analysis.

    Specific configuration for Jazz RTC

    The number of threads used to speed-up the retrieval of authors by line (aka blame information) has to be set to '1' (sonar.scm.threadCount property).

    Additional configuration for Perforce

    ...

    Code Block
    languagenone
    sonar-runner -Dmaven.scm.perforce.clientspec.name=myPerforceClientName

    Change Log

    JIRA Issues
    anonymoustrue
    titleVersion 1.6
    height70
    renderModestatic
    width800
    columnstype;key;summary;priority
    urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18755&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

     

    JIRA Issues
    anonymoustrue
    titleVersion 1.5.1
    height70
    renderModestatic
    width800
    columnstype;key;summary;priority
    urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=19240&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

     

    JIRA Issues
    anonymoustrue
    titleVersion 1.5
    height70
    renderModestatic
    width800
    columnstype;key;summary;priority
    urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18567&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

     

    JIRA Issues
    anonymoustrue
    titleVersion 1.4
    height70
    renderModestatic
    width800
    columnstype;key;summary;priority
    urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17309&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000