sonarqube

Why is jenkins repeatingly querying old sonar qube analysis?

僤鯓⒐⒋嵵緔 提交于 2019-12-24 18:47:21
问题 We are using jenkins 2.146 and sonar qube 7.0. Both system are only available for authenticated users. Jenkins calls sonar qube as user "jenkins" which has all privileges in sonar qube. In the jenkins UI administration (https:///log/all) we find lots of the following lines below (with full stack trace at the end). There are no jenkins build jobs running at this time. When requesting the named urls manually a valid json response from sonar qube is shown. The date of the analysis is quite old,

Sonarqube producing different results in different folders

微笑、不失礼 提交于 2019-12-24 18:45:42
问题 Update 1: It is actually not related to the build server, I have checkout my repo into a fresh folder and can observe the same behavior so it definitely isn't a version problem. I have compared the .sonarqube folders and cannot see anything unusual. What could be causing the results from one csproj to be ignored when building from another location? Original question: I'm setting up sonarqube for a .net project (1 .sln, 2 .csproj), when I run the analysis on my machine it works, all the files

SonarQube failed to start in linux

三世轮回 提交于 2019-12-24 18:40:49
问题 I install and configure SonarQube like this link but I can't start it properly. I see sonar.log and it was like this : --> Wrapper Started as Daemon Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 2018.12.05 07:32:36 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp 2018.12.05 07:32:36 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2018.12

How to change data folder in sonarqube?

喜欢而已 提交于 2019-12-24 16:22:31
问题 How to change data folder in sonarqube? I need to change the installation data folder to other location, is it possible? Who is the responsible of write & change this folder? Is the wrapper? I can change de location of h2 database but not the data folder location. I use Sonarqube 5.0 回答1: See in your sonar.properties : # Paths to persistent data files (embedded database and search index) and temporary files. # Can be absolute or relative to installation directory. # Defaults are respectively

SonarQube - unity tests code coverage on new code not working

点点圈 提交于 2019-12-24 16:13:32
问题 I am trying to do Sonar analysis with the unit tests code coverage on new code. When I do code coverage analysis with cobertura and do Sonar analysis the overall code coverage of the code is displayed correctly, however the code coverage of new code is not displayed. Settings: scm = Git sonar.scm.disabled = false I did following checked out earlier version of source code set Sonar project version to 1.0 created Cobertura report (xml file) executed analysis and checked that the analysis was

Getting “exception clearing maxRows/queryTimeout” on sonarqube 4.5.1

ぐ巨炮叔叔 提交于 2019-12-24 15:48:56
问题 I am running a standalone sonar analysis on my Ionic javascript project. The scan is being trigger from jenkins using sonarqube plugin 2.1 The mysql db and sonarqube is on same server. Jenkins is on seperate server. The scan seems to run fine but throws following exception when storing results in database. seems like it is trying to store results in db for 3+ hrs than throws exception. Has anybody come across same issue? anybody have any suggestion to fix the issue? Thanks 16:00:21.705 INFO -

Sonarqube test case rule does not take @Test annotation into account

我的未来我决定 提交于 2019-12-24 14:18:35
问题 Sonarqube generates issues as TestCases should contain tests regarding that test classes does not have any tests inside but there are methods marked with @Test annotation and classes annotated with @RunWith(SpringJunit4ClassRunner.class) . I have no problem running TestSuites and importing unit test and coverage reports into sonarqube. I checked sonarqube source code and it should find annotations but unfortunately it does not. Rule id for the mentioned issue is S2187. Is there a

Sonarqube thrashing when doing AST scan on old Apache Axis 1.2.1 generated code

老子叫甜甜 提交于 2019-12-24 14:04:08
问题 On some code that was generated by Apache Axis 1.2.1, sonarqube started to have issues scanning it. It gets stuck on the file and then seems to eat up memory and keep running GC until it eventually stops. It will log errors like the following Java Main Files AST scan... 11 source files to be analyzed 9/11 files analyzed, current is /bamboo-path/TestProjectWAR/src/main/java/com/example/sonar/bug/Contact.java 9/11 files analyzed, current is /bamboo-path/TestProjectWAR/src/main/java/com/example

Can SonarQube analyse T-SQL stored procedures for Microsoft SQL Server?

那年仲夏 提交于 2019-12-24 13:30:33
问题 I got a new task as follows: Export stored procedures on a daily basis from db Run them through sonarqube to analyze I am not a db expert but working in DevOps team. Can anyone tell me if SonarQube supports the analysis of T-SQL stored procedures? If not, which tool does? I see only PL/SQL here in the supported language list: http://docs.sonarqube.org/display/PLUG/Plugin+Library 回答1: This one looks promising https://github.com/gretard/sonar-tsql-plugin (still in beta version as of now) 回答2:

Sonarqube hangs when storing results in database with java.sql.SQLException

蹲街弑〆低调 提交于 2019-12-24 13:15:35
问题 I was trying to install sonar instance on EC2 Ubuntu server and migrate the old mysql database to the server. It had worked fine until I updated Sonargraph, Java and Git plugins and wanted to rebuild sonar using Gradle. The build hangs for 30-50min when trying to store results in mysql database and then fails with java.sql.SQLException: Already closed. Here's the part of the error log that I receive when running gradlew: 15:22:49.747 [LIFECYCLE] [class org.gradle.TaskExecutionLogger]