sonar-runner

Error while executing Sonarqube analysis “ Insufficient privileges”

点点圈 提交于 2019-12-04 10:47:52
I am trying to analyse java code through sonarqube. We have created a sonarqube server in our local environment and not using sonar cloud. I tried using sonar maven plugin initially form this link Sonar-Maven Plugin However I faced an "Insufficient privileges" error. [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.185 s [INFO] Finished at: 2017-09-18T13:04:47+10:00 [INFO] Final Memory: 64M/589M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.sonarsource

Sonar runner: JAVA_HOME exists but does not point to a valid Java home folder

醉酒当歌 提交于 2019-12-04 07:45:46
Situation : I installed Sonarqube on a Win XP 32-bit system. I set all paths as instructed. The server opens up well at localhost://9090. My JAVA_HOME is: C:\Program Files\Java\jdk1.7.0_60; Problem When I run, sonar-runner.bat, I get the following error: ERROR: Java_Home exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found here. What I tried: I added /bin to the path. I tried /jre, and then /jre/bin (Note: all of them contain the "/bin/java.exe" within them. Is this due to some permissions issue of the Java (or Jdk) folder ? Remove the semicolon ; from

Sonar Runner 404 localhost

╄→гoц情女王★ 提交于 2019-12-04 06:47:42
问题 I'm trying to get Sonar working locally on an OS X box to do some proof of concept work, I've downloaded the following: Sonar Qube: 4.5.6 Sonar Runner: 2.4 Sonar Qube is configured as: sonar.web.host=localhost sonar.web.context=/sonar sonar.web.port=9000 When I try and use Sonar Runner with one of the example projects I get the following error: ERROR: Error during Sonar runner execution ERROR: Fail to request server version ERROR: Caused by: Status returned by url : 'http://localhost:9000

importing javascript xml junit tests to SONAR using jstestdriver fails

时间秒杀一切 提交于 2019-12-04 00:17:36
What I am doing? I am currently working on setting up Continuous integration / delivery pipeline for front end applications. We are planning to use SonarQube as code quality tool and want to import junit test results/code coverage in SONAR for further analysis. I was able to successfully import javascript code coverage report to SONAR. We are using Gulp / Karma / PhantomJS / Jasmine etc and using Karma coverage / Junit reporters to generate test results. Junit test file name is TEST-xunit.xml. Where I am stuck? I need your help/expert guidance on importing Javascript test results to SONAR. I

Sonar - Unable to load component class org.sonar.scanner.scan.ProjectLock

不打扰是莪最后的温柔 提交于 2019-12-03 23:45:47
I have some issues while running Sonar on my netbeans' project. It's not working and i have the following error : C:\Users\remy.fischer\Desktop\NetBeansProjects\NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin>sonar-scanner -Dsonar.projectKey=..... -Dsonar.projectName=... INFO: Scanner configuration file: C:\Users\remy.fischer\Desktop\NetBeansProjects \NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin\..\conf\sonar-s canner.properties INFO: Project root configuration file: NONE INFO: SonarQube Scanner 3.0.3.778 INFO: Java 1.8.0_121 Oracle Corporation (64-bit) INFO:

Sonar - OutOfMemoryError: Java heap space

给你一囗甜甜゛ 提交于 2019-12-03 16:17:05
问题 I am deploying a large Java project on Sonar using "Findbugs" as profile and getting the error below: Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space What i have tried to resolve this: Replaced %SONAR_RUNNER_OPTS% with -Xms256m -Xmx1024m to increase the heap size in sonar-runner bat file. Put "sonar.findbugs.effort" parameter as "Min" in Sonar global parameters. But both of above methods didn't work for me. 回答1: I had the same problem and found

SonarQube with C# plugin with MSBuild Runner does not take exclusions

半城伤御伤魂 提交于 2019-12-03 14:20:41
Currently I have an instance of SonarQube 5.1.2 with C# plugin and MSBuild runner in order to analyze a 1.200.000 LOC project. I intend to reduce the classes that are analyzed, I created a sonar.properties file with the line sonar.exclusions=**/Databases/**/*.* but after reading the log from the analysis, files inside the Databases folder were analyzed. following the instructions from Eric Starr , I set this simple exclusion rule in the call of the runner: "C:\sonarqube-5.1.2\bin\MSBuild.SonarQube.Runner.exe" begin /k:MyProject /n:MyProject /v:2 /d:sonar.exclusions="file:C:\codesource

Error in jenkins during sonar analysis caused by svn blame

耗尽温柔 提交于 2019-12-03 11:01:57
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

How to export results as a PDF report?

扶醉桌前 提交于 2019-12-03 09:58:57
问题 I am using SonarQube 5.6.3. How can I create a SonarQube analysis details report as a PDF form, an excel report, or an html formatted report? No plugin seems to be available for this. I was unable to generate an html file using below configuration: sonar.issuesReport.html.enable = true sonar.issuesReport.html.location = c:\ sonar.issuesReport.html.name = sample How can I export these details from SonarQube? 回答1: For the sonar-maven-plugin it works the same. Just add these two properties to

sonarqube typescript plugin: “You must install a plugin that supports the language”

限于喜欢 提交于 2019-12-03 09:17:14
问题 I'm trying to setup SonarQube to analyse my TypeScript project using this plugin: https://github.com/Pablissimo/SonarTsPlugin However, I'm encountering an error like: > C:\sonarqube\sonar-runner-2.4\bin\sonar-runner.bat ... INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 3.006s Final Memory: 18M/613M INFO: -------------------------------------------