Missing blame information for the following files

6,528 views
Skip to first unread message

swet...@gmail.com

unread,
Feb 3, 2016, 11:50:54 AM2/3/16
to SonarQube
I am getting missing blame information for the files. I am using sonarQube 5.3. sonar.scm.disabled is set to false. SCM Sensor is on. But unable to get this information. I am using jenkins to do sonar analysis using sonar runner:

22:17:06.464 INFO  - Sensor SurefireSensor (done) | time=0ms
22:17:06.464 INFO  - Sensor SCM Sensor
22:17:06.480 INFO  - SCM provider for this project is: svn
22:17:06.480 INFO  - 521 files to be analyzed
22:17:07.618 INFO  - 0/521 files analyzed
22:17:07.618 WARN  - Missing blame information for the following files:

andreas.ch...@gmail.com

unread,
Feb 5, 2016, 6:12:47 AM2/5/16
to SonarQube, swet...@gmail.com
I get the same, error on some pom.xml files for our project. However, if I just issue a
svn blame pom.xml
on one of the files the analysis complains about, it does produce blame output. Any ideas what could be wrong?

/Andreas

Julien HENRY

unread,
Feb 11, 2016, 3:48:42 AM2/11/16
to SonarQube, swet...@gmail.com, andreas.ch...@gmail.com
Hi guys,

Could you please ensure you are using the latest version of the SonarQube SVN Plugin?

@sweta could you please enable debug logs (-X)


@Andreas possible reasons for this message to appear:
  - file contains local modifications
  - for some reason the blame returns a different number of lines than the content of the file (can also be due to local modifications)
  - bug in SVNKit?

To verify the behavior of SVNKit you can download the standalone version (http://www.svnkit.com/org.tmatesoft.svn_1.8.12.standalone.zip) and try to run the blame using it.

++

Julien

Julien HENRY

unread,
Feb 11, 2016, 4:30:39 AM2/11/16
to Sweta Singh, SonarQube
Glad to hear your problem is fixed.

Auto-assign feature is enabled by default but will only occurs for new issues. Old issues created prior you fixed the blame issue will not be assigned.

If you are on a recent project you can consider removing it from SonarQube and starting a new analysis.

++

Julien

2016-02-11 10:19 GMT+01:00 Sweta Singh <swet...@gmail.com>:
I am using 1.2 which shows as the latest in the update center. 

My issue above got fixed. I am able to see the blame information. 

I want to enable automatic assignment of issues in SonarQube based on the violations, how can I achieve that, I have created users similar to blame information shown in the file.
Reply all
Reply to author
Forward
0 new messages