sonar-runner

Why does SonarQube not show results, although the analysis succeeded?

丶灬走出姿态 提交于 2020-01-11 12:28:06
问题 I use sonar-runner to analyse my project and the analysis succeeds: 14:30:34.813 INFO - Analysis reports sent to server in 160ms 14:30:34.813 INFO - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/AMLServerProj 14:30:34.813 INFO - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report. 14:30:34.814 DEBUG - Post-jobs : 14:30:34.815 DEBUG - Release semaphore on project : org.sonar.api.resources.Project

Where does Sonarqube collects data from?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-07 03:07:20
问题 Last day I was configuring a jenkins job to run sonar on my java project. I had sonar and jacoco plugins configured in my job. Sonar was throwing some error for which my sysadmin asked me to remove the jacoco plugin configuration from job. I removed and now sonar is saying it cannot find cobertura.xml. So I am curious to know if sonar does analysis on already run jacoco or cobertura task or does it runs its own coverage analysis? 回答1: Short answer : In general, coverage is imported to

sonarRunner java.lang.OutOfMemoryError: PermGen space

Deadly 提交于 2020-01-06 01:00:06
问题 Environment: 1. Linux 2. Gradle 1.6/7 3. Language - Java gradle clean build jacocoTestReport - working fine. Recently followed the documentation provided by SonarQube installation at: http://docs.sonarqube.org/display/SONAR/Running+SonarQube+as+a+Service+on+Linux (sonar start, sonar status, sonar stop etc)...commands will work at this point. Changed gradle build script acc. to Gradle SonarRunner help page at: http://www.gradle.org/docs/current/userguide/sonar_runner_plugin.html While running

Gather statistics for shared project

為{幸葍}努か 提交于 2020-01-05 11:20:13
问题 I have a C# solution with 3 projects. App.Console\App.Console.csproj App.Web\App.Web.csproj App.Shared\App.Shared.csproj Both App.Console and App.Web reference App.Shared . Currently, I build each project separately as they have slightly different MSBuild arguments. My current build process is as follows MSBuild.SonarQube.Runner.exe begin /k:"MyApp" /n:"My App" /v:"1.0" msbuild.exe msbuild App.Console\App.Console.csproj /t:'Rebuild' /p:Configuration=Release /p:OutDir=C:\Out\Console msbuild

Gather statistics for shared project

孤街浪徒 提交于 2020-01-05 11:20:12
问题 I have a C# solution with 3 projects. App.Console\App.Console.csproj App.Web\App.Web.csproj App.Shared\App.Shared.csproj Both App.Console and App.Web reference App.Shared . Currently, I build each project separately as they have slightly different MSBuild arguments. My current build process is as follows MSBuild.SonarQube.Runner.exe begin /k:"MyApp" /n:"My App" /v:"1.0" msbuild.exe msbuild App.Console\App.Console.csproj /t:'Rebuild' /p:Configuration=Release /p:OutDir=C:\Out\Console msbuild

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

Using Sonar MSBuild Runner with /p:IsPackaging=True

断了今生、忘了曾经 提交于 2020-01-04 03:51:44
问题 I've a Visual Studio Team Services build definition containing a Visual Studio Build task surrounded by the Sonar Begin Analysis and End Analysis task. The Visual Studio Build packages a SharePoint provider hosted add-in using the /p:IsPackaging=True property. If this property is set I get the following error from the Sonar Build Runner: 2015-11-27T13:23:05.9534586Z WARNING: Duplicate project GUID: "31ef7995-fdbc-4307-9024-a3d640fdf987". Check that the project is only being built for a single

Using Sonar MSBuild Runner with /p:IsPackaging=True

痴心易碎 提交于 2020-01-04 03:51:12
问题 I've a Visual Studio Team Services build definition containing a Visual Studio Build task surrounded by the Sonar Begin Analysis and End Analysis task. The Visual Studio Build packages a SharePoint provider hosted add-in using the /p:IsPackaging=True property. If this property is set I get the following error from the Sonar Build Runner: 2015-11-27T13:23:05.9534586Z WARNING: Duplicate project GUID: "31ef7995-fdbc-4307-9024-a3d640fdf987". Check that the project is only being built for a single

SonarRunner with gradle: Fail to download libraries from server

☆樱花仙子☆ 提交于 2019-12-30 10:37:29
问题 I have updated Sonar to the 4.5.1 LTS version, and now in my gradle task i have got the following error and can't fix it: Fail to download libraries from server build.gradle with sonar runner sonarRunner { sonarProperties { property "sonar.host.url", "http://sonar:9000" property "sonar.login", "" property "sonar.password", "" property "sonar.jdbc.url", "jdbc:mysql://sonar" property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver" property "sonar.jdbc.username", "sonar" property "sonar