Sonar

Sonar Setup Undefined Mandatory Properties

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Learning how to use SonarQube and was doing a quick install from here Got all the way down to step 5. My build fails when I execute: C:\sonar-runner\bin\sonar-runner.bat I get the following error: INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 7.572s Final Memory: 8M/223M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR

Sonarqube upgrade to 6.7: Unrecoverable indexation failures

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Currently we are in middle of upgrade process from v4.5.7 to v6.7.1. SonarQube is successfully upgraded to v5.6.7 (including DB upgrade) and currently in the process of updating to v6.7.1. New SonarQube version started on an empty DB ( bundled H2 DB ) worked fine. After which all the plugins and their versions are validated and updated accordingly. Now Sonar service launching is failing with error Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Unrecoverable indexation failures . I removed data/es5

Error in sonar startup, Unable to start JVM: No such file or directory (2)

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am facing strange issue with sonarqube 5.0.1 , one one of the machine it is not starting. Here is the error log - sonar.log - --> Wrapper Started as Daemon Launching a JVM... Unable to start JVM: No such file or directory (2) JVM exited while loading the application. JVM Restarts disabled. Shutting down. Machine is x86_64 GNU/Linux - Centos 5.1. this box has java installed - $java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode) The same

SonarQube not picking up Unit Test Coverage

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having issues with sonar picking up the jacoco analysis report. Jenkins however is able to pick up the report and display the results. My project is a maven build, built by Jenkins. The jacoco report is generated by maven (configured in the pom). Sonar is executed by using the Jenkins plugin. This is what i see on SonarQube: This is the report i can see of the project in jenkins. The maven plugin config: org.jacoco jacoco-maven-plugin 0.6.4.201312101107 default-prepare-agent prepare-agent default-report prepare-package report default

sonar.host.url not working with sonar-maven-plugin:2.7

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After upgrading my POMs to sonar-maven-plugin:2.7 the configuration does not work any more. My configuration in settings.xml is like this: sonar jdbc:postgresql://my.server:5432/sonar org.postgresql.Driver xxxxx yyyyy http://my.server The build is started with -Psonar of course. With version 2.6 everything is fine, with 2.7 I get [INFO] --- sonar-maven-plugin:2.7:sonar (default-cli) @ myproject --- [INFO] User cache: C:\Users\me\.sonar\cache [ERROR] SonarQube server 'http://localhost:9000' can not be reached ... [ERROR] Failed to execute

SonarQube And SonarLint difference

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How exactly is sonarQube different from SonarLint ? SonarQube has a server associated with it and Sonar lint works more like a plugin. But what are their specific difference ? 回答1: SonarLint lives only in the IDE (IntelliJ, Eclipse and Visual Studio). Its purpose is to give instantaneous feedback as you type your code. For this, it concentrates on what code you are adding or updating. SonarQube is a central server that processes full analyses (triggered by the various SonarQube Scanners). Its purpose is to give a 360° vision of the

Sonar Runner does not use properties of sonar-project.properties

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using SonarQube Runner 2.4 at jenkins since today but the analysis fail with the message: If I add the property "MyProject.sonar.sources=src" In the project properties in Jenkins (I use "Invoke Standalone Sonar Analysis"). I will receive the error message ERROR: Caused by: Findbugs needs sources to be compiled. Please build project before executing sonar and check the location of compiled classes. This means the sonar-project.properties (/.jenkins/workspace/Deploy/MyProject/sonar-project.properties) is not read or used because there are

Sonar scanner issue in jenkins

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to integrate sonar with Jenkins in my local, when integrating the build is successfully and execution is success, but it is not getting finished success, it show below error and it show out of memory INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/al-config-server INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWWunlqCAbj3m24yQM89 INFO: Task

Sonar reports different line and branch coverage than Idea, Eclipse, Maven and Jenkins

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have all those tools reporting the same coverage with JaCoCo: 69% line coverage and 23% branch coverage. Note: Screenshots had been taken over several days so they have slightly different values, but the variance is < 1% Jenkins: Maven: Eclipse: However Sonar reports different values: Maven project is structured as follows: main (aggregator) java module js (node) module You can see the same coverage reported on main and java modules, and no coverage for the js one. I'm using the latest versions of jacoco , jacoco-maven-plugin and Sonar's

SonarQube Coverage for Branch

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to get code coverage details for non-master branches in SonarQube? The only two tabs I see for other branches are Issues and Code . I am running the same Gradle JaCoCo/Sonar commands for each branch: ./gradlew report sonarqube -Dsonar.branch.name=${BITBUCKET_BRANCH} -Dsonar.organization=${SONARQUBE_ORG} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARQUBE_KEY} I am using PowerMockito so I need the class instrumentation done by the report task. We are using Java, Gradle, and JaCoCo with Sonar. 回答1: All metrics are