Error in SonarQube when launching svn blame

笑着哭i 提交于 2019-11-28 08:24:49
vehovmar

I experienced same issue after installing SonarQube 5.1, go to Update Center:

http://your_domain:port/updatecenter/available

search for the "SVN", click "Install"

https://docs.sonarqube.org/display/PLUG/SVN+Plugin

Something like this will appear:

SonarQube needs to be restarted in order to install the following plugins: sonar-scm-svn-plugin-1.0.jar

Restart your SonarQube.

Mahesh

use the below command which will disable the svn related issues

-Dsonar.scm.disabled=True

this will disable the svn

This issue can be solve by two way,
1. by setting the sonar.properties -Dsonar.scm.disabled=True, this is valid only for sonarrunner.bat sonar analysis,
2. If your doing using any other type analysis then login with admin default admin is admin/admin(username/password).http://yourDomin:port/settings/index(e.g http://localhost:9000/settings/index) then in category select the scm and disable the scm sensor set as true.
3.or else u can add the svn plugin to the sonar http://your_domain:port/updatecenter/available after login as admin(admin/admin), search for the available plugin and select the svn and install it..

I had this problem and it was caused by not having an active installation of SVN on the build machine that was running the sonar analysis. It doesn't matter what the sonar box has installed. It's the build agent which needs to do the SVN blame.

I was using CentOS. The magic was

sudo yum install svn

The final trick was to make sure that the build machine was using the same version of SVN for checkout as the version I installed. If the build machine was natively using a different version you may have to make sure it cleans the whole workspace before its next check out too.

Finally, don't forget that Sonar needs your SVN credentials too!

Please check that the SonarQube process has the same enviroment variables, as you are using for testing.

I have just installed SonarQube 5.0.1 on a Redhat Linux machine and I have exactly the same problem.

Instead of disabling the scm stats plugin, I have installed a svn client (svnkit.x86_64) and the build is executed successfully with SCM activated. So I guess on Windows, you should install a svn client and put it on the PATH.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!