sonarqube

Sonarqube 4.5.4 : Mysql deadlock

久未见 提交于 2019-12-23 07:27:30
问题 I am using sonarqube 4.5.4 with mysql database. I got this exception when running analysis on my projects : INFO o.d.m.sonar.runner.RunSonarVisitor - ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction 2016-02-23 04:05:40.091Z INFO o.d.m.sonar.runner.RunSonarVisitor - ### The error may involve org.sonar.core.user.RoleMapper.insertGroupRole-Inline 2016-02-23 04:05:40.091Z INFO

Sonarqube 5.5 and mariadb

霸气de小男生 提交于 2019-12-23 07:05:38
问题 We are trying to upgrade to lastest sonarqube 5.5. We have mariadb 10.1 (latest) and since now we had no problems with sonarqube. Now, with the upgrade, sonarqube will not boot. It says: Unsupported mysql version: 5.5. Minimal supported version is 5.6. Is there any trick we can use to make "sonar think" we are using mysql 5.6? 回答1: You could change the MINIMAL_SUPPORTED_DB_VERSIONS member in the Sonarqube's class https://github.com/SonarSource/sonarqube/blob/master/sonar-db/src/main/java/org

sonarqube+sonar runner分析C#代码

家住魔仙堡 提交于 2019-12-23 06:31:35
最近研究一个代码覆盖率和代码分析工具。遇到一些比较坑的问题,现在分享给大家。 1、Sonar介绍 Sonar是一个用于代码质量管理的开源平台,用于管理Java源代码的质量。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具,比如pmd-cpd、checkstyle、findbugs、Jenkins。通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规模和种类的工程进行代码质量管理。 同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar。 此外,Sonar 的插件还可以对 Java 以外的其他编程语言提供支持,对国际化以及报告文档化也有良好的支持 一:先搭好环境 1.jdk 1.7的版本,我现在用的1.8的版本,尽量用最新版的: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 安装运行JDK以后,还需要做下面的几项配置: -计算机属性》高级系统设置》高级》环境变量》系统变量 - 添加服务器环境变量JAVA_HOME, 内容为Java的安装目录。例如我这里的安装目录为C:\Java\jdk1.8.0_11 -

配置sonar和jenkins进行代码审查

柔情痞子 提交于 2019-12-23 06:31:07
转自: http://www.cnblogs.com/gao241/p/3190701.html, 版权归原作者所有。 本文以CentOS操作系统为例介绍Sonar的安装配置,以及如何与Jenkins进行集成,通过pmd-cpd、checkstyle、findbugs等工具对代码进行持续审查。 一、安装配置sonar 1、Sonar介绍 Sonar是一个用于代码质量管理的开源平台,用于管理Java源代码的质量。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具,比如pmd-cpd、checkstyle、findbugs、Jenkins。通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规模和种类的工程进行代码质量管理。 同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar。 此外,Sonar 的插件还可以对 Java 以外的其他编程语言提供支持,对国际化以及报告文档化也有良好的支持。 2、配置数据库 Apache Derby 是Sonar自带并且默认安装使用的数据库,此外Sonar对如下数据库提供支持:MySQL 5.x, Oracle 10g XE, Postgresql, MS SqlServer等,本文以mysql为例介绍如何配置数据库: 1)创建数据库

Can SonarQube connect Azure SQL Database?

自作多情 提交于 2019-12-23 05:44:40
问题 My SonarQube is running on VM instance of Microsoft Azure. Now the SonarQube's database is MySQL, and I'm trying to change MySQL to Azure SQL Database, but SonarQube couldn't connect Azure SQL Database by some erroes which occured at ActiveRecord component. I know SonarQube doesn't support Azure SQL Database officially and support SQL Server below, nevertheless Azure SQL Database is compatible with SQL Server, so It's may possible to connect Azure SQL Database. Please tell me how to connect

Sonar Eclipse plugin: Failed to download batch_bootstrap/db

你。 提交于 2019-12-23 05:27:17
问题 I'm having issues with the Eclipse plugin of sonar. When executing it I'm getting the following exception in the Eclipse console: Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher

Custom plugin for SonarQube 5.2 produces NoClassDefFoundError

空扰寡人 提交于 2019-12-23 05:02:26
问题 I'm trying to develop a plugin for SonarQube 5.2, however, when I deploy the plugin, the SonarQube server is unable to start. The log shows a NoClassDefFound exception with a Google Guava class: Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at br.gov.tcu.plugins.pmd.PmdTcuPlugin.getExtensions(PmdTcuPlugin.java:48) ~[na:na] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:55) ~[sonar-server-5.2.jar:na] ...

Upload of Sonar report fails due to SocketTimeoutException

ⅰ亾dé卋堺 提交于 2019-12-23 04:54:28
问题 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]

Sonar + MS SQL database

安稳与你 提交于 2019-12-23 04:33:15
问题 I'm attempting to initialize sonar with mssql server database, but I can't. With Microsoft SQL Server Management Studio I created the user with username "sonar" and password "sonar" and granted all the correct privileges to "sonar" database, also created. Also configured "Server Authentication" to "SQL Server and Windows Authentication mode".It works perfectly, but I can't have connection to the database with sonar. Thanks, sonar.properties; #----- Credentials # Permissions to create tables

Sonarqube C# v5.5.2 still has “java.lang.IllegalArgumentException: is not a valid line offset for pointer”

丶灬走出姿态 提交于 2019-12-23 04:13:33
问题 This is related to Sonarqube C# scanner exception: "java.lang.IllegalArgumentException: is not a valid line offset for pointer" Using Sonarqube v5.6.4 on a windows server, c# scanner v5.5.2.537. MSBuild version is: Microsoft (R) Build Engine version 14.0.25420.1 I'm just using the non-service mode, StartSonar.bat while trying to get it working on this codebase, if that makes any difference. The GlobalSuppressions.cs file in question is UTF-16. You can view it in an online hex editor. INFO: