Sonar

SonarQube: Fail to get bootstrap index from server: Status returned by url [http://hostname:9095/sonar/batch/index] is not valid: [403]

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to execute following maven command from jenkins job, mvn clean install sonar:sonar -Dsonar.host.url=http://hostname:9095/sonar -Dsonar.projectKey=mavensample -Dsonar.login=admin -Dsonar.password=admin -X But it fails with following error, [DEBUG] 18:20:49.119 Download: http://hostname:9095/batch/index [ERROR] 18:20:49.176 SonarQube server [http://hostname:9095] can not be reached [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] --------------------------------------------

sonar-maven-plugin:3.1.1:sonar analyze error after upgrade to SonarQube 6.0

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We just upgraded to SQ 6.0 and now some projects get the following error when analyzing with maven: [INFO] --- sonar-maven-plugin:3.1.1:sonar (default-cli) @ gitlab-hook-dispatcher --- [INFO] User cache: C:\Users\frank.jakop\.sonar\cache [INFO] Load global repositories [INFO] Load global repositories (done) | time=94ms [INFO] User cache: C:\Users\frank.jakop\.sonar\cache [INFO] Load plugins index [INFO] Load plugins index (done) | time=5ms [INFO] SonarQube version: 6.0 [INFO] Default locale: "de_DE", source code encoding: "UTF-8" [INFO]

C# project in sonarqube

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I run sonar-runner for an analysis my simple C# project the analysis terminate on error on SonarLint.Runner.exe of permission denied: ERROR: Error during SonarQube Scanner execution ERROR: java.io.IOException: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied ERROR: Caused by: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied ERROR: Caused by: error=13,

sonar jdbc properties are not supported anymore in sonarqube 5.3 version

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using sonarqube 5.3 latest version and when I configure the sonar jdbc properties in my properties file using property "sonar.jdbc.url", "jdbc:mysql://localhost:3306/sonar") property "sonar.jdbc.username", "root") property "sonar.jdbc.password", "root") I get warning message Property 'sonar.jdbc.url' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. Property 'sonar.jdbc.username' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database.

Duplicate key error with SonarQube 5.2

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been trying out SonarQube 5.2, but I'm getting errors such as these: org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause:com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object 'dbo.projects' with unique index 'projects_uuid'. The duplicate key value is (AVDTnvuxTcMzGBo2P2Fw). ### The error may involve org.sonar.db.component.ComponentMapper.insert-Inline ### The error occurred while setting parameters ### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot

SonarQube 5.3: IllegalArgumentException: There's no changeset on line 1352

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to migrate from 5.1 to 5.3 version of SonarQube. SonarQube plugins: Cobertura 1.6.3 (cobertura) C# 4.4 (csharp) Java 3.9 (java) XML 1.4 (xml) Git 1.0 (scmgit) SVN 1.2 (scmsvn) JavaScript 2.10 (javascript) My project use Java, XML, JavaScript and jaCoCo code coverage. The client side analysis works fine, but I have a stack-trace in logs during the server-side integration: (end of logs) 2016.02.04 10:45:17 INFO [o.s.s.c.s.ComputationStepExecutor] Log scanner context | time=11ms 2016.02.04 10:45:17 INFO [o.s.s.c.s.ComputationStepExecutor]

Upload of Sonar report fails due to SocketTimeoutException

匿名 (未验证) 提交于 2019-12-03 01:19:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have a problem similar to those already discussed in Sonar analysis fails with SocketTimeoutException and Read timed out on SonarQube analysis but it happens to us in version 5.6.2. We have a large number of sonar analyses as a series of nightly builds starting at midnight and ending in the early morning. Only the first analysis (sometimes the first couple of analyses) are affected by a SocketTimeoutException during the upload of the report: [exec] 00:15:33.724 DEBUG: Upload report [exec] 00:16:34.065 INFO: -------------------------------

Which sonar-maven-plugin version to use?

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am wondering which sonar-maven-plugin in which version I should use. As far as I know there is a org.codehaus.mojo version and two org.codehaus.sonar versions ( sonar-maven3-plugin , sonar-maven-plugin ). As far as I understand the sonar-maven3-plugin is now deprecated and the org.codehaus.sonar:sonar-maven-plugin should be used instead. However those org.codehaus.sonar version are tied to a certain version of the sonar server, therefore it makes probably no sense to use them directly. To be able to deal with this there is the org.codehaus

SonarQube: How to analyze project that used to be submodule of another project?

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a project with an aggregator POM and several submodules: com . example : root |- com . example : module - a |- com . example : module - b |- com . example : module - c It was decided that module-b needs to be a separate project, so the directory module-b was split off into a separate git repository. Now we have 2 projects: com . example : root |- com . example : module - a |- com . example : module - c com . example : module - b com.example:root was analyzed for a long time with SonarQube. I use the maven goal sonar:sonar .

Sonarqube maven plugin : “The 'report' parameter is missing” when analyzing Maven Project

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My error log I'm using sonarqube 6.7.1 to analyze my maven project (maven 3.5.2 ) & sonar-maven 3.4.0.905 . I keep getting the error "The 'report' parameter is missing". I did researches for hours but looks like almost no one has had this error. Did anyone have this same issue? [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project university-service: The 'report' parameter is missing Here is my POM.xml file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/