sonarqube

How to configure a Jenkins Pipeline for SonarQube scan

*爱你&永不变心* 提交于 2019-12-12 08:53:44
问题 I am trying to configure a jenkins pipeline for my project, but there is something missing here, if anyone could direct on what I am doing wrong: Below is the pipeline script: node { stage('SonarQube analysis') { // requires SonarQube Scanner 2.8+ def scannerHome = tool 'sonarScanner'; withSonarQubeEnv('SonarQube 6.2') { bat "${scannerHome}/bin/sonar-runner.bat" } } } Below is the Jenkins Sonar Plugin related configurations: Under Manage Jenkins > Configure System : Under Manage Jenkins >

How to tell Sonar to use my LCOV file for Code Coverage

心不动则不痛 提交于 2019-12-12 08:46:48
问题 We have a Jenkins job that contains a bunch of javascript files. We build our project via grunt, and at the end of the build we run JSCover to run our unit tests and collect code coverage. It all works. We get a nice LCOV file. We now want to upload the LCOV file to Sonar, and I'm not sure how to do this. We are building our project from Jenkins as a free style project. I tried playing around with various project properties for sonar, but no love: # project metadata (required) sonar

Configure Sonar to see Integration Tests (v6.2)

会有一股神秘感。 提交于 2019-12-12 08:29:16
问题 How to visualize Integration Tests in Sonar ? Currently I only see : the global coverage (UT + IT) the number of UT I read somewhere we had to configure a widget in the GUI : I didn't see any option which could do that. Documentation states : If coverage by unit tests is not computed with JaCoCo, overall coverage = integration test coverage. But in my case I see that the coverage is changing when I change my UTs (or ITs). Moreover I see jacoco reports in the targets : jacoco.exec jacoco-it

Publishing Lint results to Sonar using Gradle

♀尐吖头ヾ 提交于 2019-12-12 07:36:46
问题 I am trying to publish Lint results to a sonar server using Gradle. The other analysis results are published, but the Lint results are not. Does anyone have any experience getting this to work? I could not find any addition information. The version of Sonar is 3.5.1 The version of Gradle is 1.10 The top level build file looks like this (there are 3 subprojects) // Top-level build file where you can add configuration options common to all sub-projects/modules. apply plugin: 'sonar-runner'

SonarQube “Class Not Found” during Main AST Scan

China☆狼群 提交于 2019-12-12 07:15:38
问题 My setup: Sonarqube 5.1.1 Sonar-Maven Plugin 2.6 (also tried 2.7 and 3.6) JDK 1.7.0_51 Example of the error: 16:00:54 [INFO] [23:00:54.219] Sensor JavaSquidSensor 16:00:55 [INFO] [23:00:55.030] Java Main Files AST scan... 16:00:55 [INFO] [23:00:55.030] 1532 source files to be analyzed 16:00:58 [ERROR] [23:00:57.927] Class not found: javax.annotation.Nullable 16:00:58 [ERROR] [23:00:57.928] Class not found: javax.annotation.CheckReturnValue 16:00:58 [ERROR] [23:00:58.114] Class not found:

“The plugin java is not supported with Java 1.6.0_45” from SonarQube 4.5.4 with a specify java version 1.7

青春壹個敷衍的年華 提交于 2019-12-12 06:35:45
问题 I'm trying to configure the SonarQube 4.5.4 on my server. For that SonarQube version, it needs jdk 1.7, in case of building my Android system firmware, only jdk 1.6 can be set as the default jdk. Now jdk 1.7 is still on my Computer, not the defalut one. So in order to make SonarQube run, the jdk 1.7's absolute path is specified in /conf/wrapper.conf under the following line: wrapper.java.command=/usr/lib/jvm/java-7-oracle/jre/bin/java After this, the jdk 1.7 can be seen from Sonar's setting:

Is it possible to run the MSBUILD.SONARQUBE.RUNNER on a CSProj file as opposed to a solution?

梦想与她 提交于 2019-12-12 06:05:28
问题 I have a TFS xaml Build template that runs the msbuild.sonarqube.runner start (and end) before and (after the) msbuild task in the xaml. It all works well enough with a .sln file. As the file under build. However, when I attempt to use this on a build that runs msbuild on a .csproj file the end process reports that it cannot find the postprocess exe. "Execution failed. The specified executable does not exist: .sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe" there no error indication

sonar-pdfreport-plugin-1.4 with Sonar 4.5.1

删除回忆录丶 提交于 2019-12-12 05:29:34
问题 I am using Sonar 4.5.1 and sonar-pdfreport-plugin-1.4 to run the build. PDF report is not getting generated an is showing below message : Internal error: Can't retrieve project info. Parent project node is empty. Authentication?. I saw a bug posted for this (https://jira.sonarsource.com/browse/SONARPLUGINS-3854) but would like to know what is the workaround available for this issue. User Authentication is already set for this in General Settings->Pdf report but doesn't work either. 回答1: This

Export custom sonarqube report

若如初见. 提交于 2019-12-12 04:56:55
问题 Basically, what I want to achieve is very similar to this post However, the links in the answer are no longer available. I'm very new to sonar, just set up the server and run some analysis example. I've been searching hours on how to export the test result rather than view it on the web. Any guidance? UPDATE: I DON'T WANT PDF FILE 回答1: Since you simply want raw data, to be formatted and displayed elsewhere, then what you're looking for is the web services. I've linked to SonarCloud, but you

SonarQube - QProfile is missing

强颜欢笑 提交于 2019-12-12 04:55:58
问题 I have upgraded SonarQube from 4.4 to 5.1 and I am getting the following error. 2015.04.09 11:56:50 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener java.lang.IllegalStateException: Could not execute normalization for stack at org.sonar.server.search.IndexQueue.processActionsIntoQueries(IndexQueue.java:136) ~[sonar-server-5.1.jar:na] at org.sonar.server.search.IndexQueue.enqueue