问题
When i run the jenkins task i get the following error
17:12:49.738 INFO - Sensor SCM Sensor...
17:12:49.847 INFO - SCM provider for this project is: svn
17:12:49.847 INFO - Retrieve SCM blame information...
17:12:49.863 INFO - 843 files to be analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 1:11.026s
Final Memory: 31M/214M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: The svn blame command [svn blame --xml --non-interactive -x -w src/com/musigma/muPDNA/RESTClient/ServiceClient.as] failed: svn: E215004:
When i try to delete the .svn folder and run the sonar runner, it works fine. I have tried to ignore the svn files and svn folder, also i have tried to disable the blame option in the sonar but without any possible outcome.
Which is the right way to do this ??
its not mentioned anywhere. I want to eliminate the error caused by blame(svn) but I don't want to delete the ".svn" folder before the analysis(which is the only way i'm able to get it working)
回答1:
In SonarQube v4, go to your project's dashboard and then to Project Configuration \ Settings (top right under the Search box).
Click the SCM Activity link in the Category list and change the "Activation of..." drop down to false.
You can change the default on the global settings page.
回答2:
Just add the property sonar.scm.disabled=true
into sonar-runner/conf/sonar-runner.properties
. I have just tested it with SonarQube 5.1.1
.
回答3:
In the last release of Sonar (SonarQube v 5.0.1), property is set to true in order to deactivate the SCM Sensor. So choose "True" to disable SCM and solve this issue :)
回答4:
In Sonarqube server version Version 5.6.1 Click on Administration -> click on Configuration Dropdown and select General settings -> Click on SCM -> Select the true in Disable the SCM Sensor drop-down and save SCM settings(The default selected means is false).
来源:https://stackoverflow.com/questions/28499470/error-in-jenkins-during-sonar-analysis-caused-by-svn-blame