Issues "Author" Information missing for a project(Gitlab)

gitlab
sonarqube

(Parimi Naresh) #1

I have trouble in configuring my java projects(gitlab) with sonarqube to get author details for the Issues listed out in Issues tab. I understand this helps to know who introduced the issues. Below are some more details on our setup.

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonar Qube Version 7.1 (build 11001)LGPL v3Community

  • what are you trying to achieve
    - Code Inspection with author details for the issues but right now its blank for my projects.

  • what have you tried so far to achieve this
    My current setup:
    - Have a gitlab java maven project.(Enterprise version of gitlab)
    - Jenkins for Continuous build and deployment.Configured a simple job to clone gitlab project and run maven goal sonar:sonar for code inspection tests.
    - I can see the code analysis reports published to Sonarqube dashboard but missing issue author details.

Note: When I tried the same test with a simple java project publicly hosted in my github repository, I could see the author details though.

Your inputs are much appreciated. Thanks in advance.


(Parimi Naresh) #2

I did solved this issue by installing Git plugin on the Sonarqube server and passing -Dsonar.scm.provider as git. Same way should have worked for svn projects but in my case there is some authentication issue while reading blame information for a pom.xml of a project.