sonarqube

Coverage report works in Jenkins using Jacoco but I cannot get coverage report in SonarQube

天涯浪子 提交于 2020-01-05 08:34:47
问题 I'm using Jenkins+Jacoco+Sonarqube to test my code. In Jenkins, my mvn command is: clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.skip=false -Dmaven.test.failure.ignore=true sonar:sonar And I add action 'record jacoco coverage report' after build. But the result is, jenkins works as below: It shows coverage report and other information. But I cannot get coverage percentage in sonarQube therefore the quality gate in Sonarqube cannot be passed. I guess that sonar cannot

Sonar 3.0 installation error

对着背影说爱祢 提交于 2020-01-05 08:21:10
问题 I've installed Sonar 3.0 to my server machine, but this error code is generated.. STATUS | wrapper | 2012/05/09 15:05:31 | --> Wrapper Started as Console STATUS | wrapper | 2012/05/09 15:05:31 | Launching a JVM... INFO | jvm 1 | 2012/05/09 15:05:31 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2012/05/09 15:05:31 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2012/05/09 15:05:31 | INFO | jvm 1 | 2012/05/09 15:05:31 | 2012-05-09 15

Sonar 3.0 installation error

北慕城南 提交于 2020-01-05 08:21:08
问题 I've installed Sonar 3.0 to my server machine, but this error code is generated.. STATUS | wrapper | 2012/05/09 15:05:31 | --> Wrapper Started as Console STATUS | wrapper | 2012/05/09 15:05:31 | Launching a JVM... INFO | jvm 1 | 2012/05/09 15:05:31 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2012/05/09 15:05:31 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2012/05/09 15:05:31 | INFO | jvm 1 | 2012/05/09 15:05:31 | 2012-05-09 15

Can Sonar plugin exclusions be configured for local analysis without a local server?

末鹿安然 提交于 2020-01-05 04:48:48
问题 We have a central Sonar server for scanning and reporting on all the code within the organization. We also have the Sonar plugin for Eclipse (RTC) so that we can run local analysis as we edit code. The problem I've got is that I need to set exclusions on 3rd party libraries so they don't get parsed when running a local analysis. I've seen how to set exclusions on the server but I don't have permissions to alter the server setup (and don't see the need to do this for a local analysis). I also

MS build and SonarQube analysis from jenkins, unable to execute Sonar, E170001

喜夏-厌秋 提交于 2020-01-05 04:09:07
问题 I'm trying to build a .Net project and start the sonarqube code analysis with jenkins. I did the following steps: Download SonarQube Start the SonarQube server: C:...\sonarqube\bin\windows-x86-64\StartSonar.bat Install SonarQube 2.4.4 Plugin on Jenkins Go to http://localhost:8080/configure and configure the SonarQube server as shown here: Go to http://localhost:8080/configureTools/ and configure SonarQube Scanner for MSBuild like this: Added a job in jenkins, configured the project to be

SonarQube is unable to analyze file: ArrayIndexOutOfBoundsException

╄→尐↘猪︶ㄣ 提交于 2020-01-05 04:05:31
问题 We're facing problems when analyzing one of our Java projects. The following error is reported: ERROR: Error during SonarQube Scanner execution org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : '/jenkins/dev1/Project1/src/com/myproject/dm/voucher/image/TextblockContent.java' at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:93) at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67) at org.sonar.java.JavaSquid.scanSources(JavaSquid

sonarqube 6.6 upgrade : Unrecoverable indexation failures

空扰寡人 提交于 2020-01-05 00:49:40
问题 After sonarqube 6.6 upgrade from 6.5 (with Debian package), sonar is unable to start. I did not update plugins before upgrade. I just let the standard Debian package upgrade. I am using an external database (Postgresql). I found the following errors in web.log : 2017.10.24 18:12:34 ERROR web[][o.s.s.es.BulkIndexer] index [components], type [component], id [AVgpp1_-x6lKXwnU0BYQ], message [java.lang.IllegalArgumentException: can't specify parent if no parent field has been configured] 2017.10

Sonar Eclipse issue

耗尽温柔 提交于 2020-01-04 15:29:43
问题 I am having some issues running Sonar analysis in Eclipse. I have Java Maven project with Groovy Spock unit tests. mvn sonar:sonar Works fine and generates reports which I can see on the "localhost:9000". However I need to see issues in Eclipse. I have done the Configure->Associate... and now when I choose "SonarQube->Analyze" I get following errors in the console: 10:18:23.892 ERROR - Invalid value of sonar.libraries for com.otpp.email:bulkemail-downloader Exception in thread "main" org

import mocha unit tests result in sonarqube

自作多情 提交于 2020-01-04 14:14:58
问题 I use mocha to get unit tests results and istanbul to get code coverage. I'm using grunt to run these tasks. It works fine. I'm also using grunt-sonar-runner plugin to import these result in sonar. Currently code coverage is imported but that is not the case for unit tests results. During the build, sonar report me this : 20:40:19.410 WARN - Test result will not be saved for test class "Account Controllers User Controller forgot password", because SonarQube associated resource has not been

Maven Sonarqube Plugin: Multithreading

心不动则不痛 提交于 2020-01-04 09:22:49
问题 Since maven supports multithread builds, would it be possible to also run sonar multithreaded? (e.g. mvn sonar:sonar -T 4 ) I ran it and while the module reported success, it reports back as the overall build failing with java.util.concurrent.ExcutionException: java.lang.NullPointerException Thoughts? 回答1: As of 6/12/15 it's been resolved that the Maven Sonar plugin does not support Maven 3's parallel build feature: http://jira.sonarsource.com/browse/MSONAR-7 来源: https://stackoverflow.com