sonar-runner

API Requests format in gitlab

十年热恋 提交于 2019-12-13 02:56:47
问题 I am pretty new to Gitlab and Sonarqube. Getting my code coverage of my pipeline in my sonarqube. Now I want to call the metrics of my code coverage in Gitlab. I have updated my gitlab.ci.yml file to get the api response and have added this URL "http://sonarqube.dev.aws.nervo.com/component_measures/domain/Coverage?id=com.nervo.microservices%3Adelivery/api/resource=delivery&metrics=ncloc,coverage" When checked in postman for any response,it failed. Goal: The goal is that on consecutive runs of

SonarQube background tasks failing with IllegalArgumentException for Java

故事扮演 提交于 2019-12-12 18:07:01
问题 We updated Sonarqube to version 5.2. After it, some Java projects start failing with following exception: 2015.12.22 02:42:13 INFO [o.s.s.c.s.ComputationStepExecutor] Execute component visitors | time=9942ms 2015.12.21 13:01:45 ERROR [o.s.s.c.t.CeWorkerRunnableImpl] Failed to execute task AVHFtA0KaMG72s7lWjEx java.lang.IllegalArgumentException: Multiple entries with same key: MeasureKey{metricKey='lines', ruleId=-6253, characteristicId=-6253}=org.sonar.db.measure.PastMeasureDto@7493f7f3 and

Sonar not picking up the visual studio test report paths

◇◆丶佛笑我妖孽 提交于 2019-12-12 15:27:35
问题 We are running SonarQube(5.0.1), with sonar.net-runner on a TFS (2010) team build. FxCop works fine, and everything runs perfect, I see all the issues in sonar. However, when I try to pull in the test results in sonar, I run into an issue. When I set the property sonar.cs.vstest.reportsPaths to an absolute file of a trx file, it publishes my test results to sonar. Great . But when I use a wild card, my test results don't get published in sonar. Not so great Configurations I've tried. #1 sonar

2 instances of Sonar on same machine

做~自己de王妃 提交于 2019-12-12 13:11:26
问题 Can we run 2 instances(2 different versions) of Sonar on same machine? At present Sonar 3.7.3 is installed and is been used with Hudson for Sonar Reports. Now, there are some projects that run on Java 8 and Java 8 is not supported by 3.7.3 Sonar version. So to run the Java 8 projects, I need to use the latest version of Sonar but upgradation of Sonar would impact the existing projects that run on Java 6. So can we configure 2 Sonar instances and can configure Hudson accordingly so that both

Publishing Lint results to Sonar using Gradle

♀尐吖头ヾ 提交于 2019-12-12 07:36:46
问题 I am trying to publish Lint results to a sonar server using Gradle. The other analysis results are published, but the Lint results are not. Does anyone have any experience getting this to work? I could not find any addition information. The version of Sonar is 3.5.1 The version of Gradle is 1.10 The top level build file looks like this (there are 3 subprojects) // Top-level build file where you can add configuration options common to all sub-projects/modules. apply plugin: 'sonar-runner'

“The plugin java is not supported with Java 1.6.0_45” from SonarQube 4.5.4 with a specify java version 1.7

青春壹個敷衍的年華 提交于 2019-12-12 06:35:45
问题 I'm trying to configure the SonarQube 4.5.4 on my server. For that SonarQube version, it needs jdk 1.7, in case of building my Android system firmware, only jdk 1.6 can be set as the default jdk. Now jdk 1.7 is still on my Computer, not the defalut one. So in order to make SonarQube run, the jdk 1.7's absolute path is specified in /conf/wrapper.conf under the following line: wrapper.java.command=/usr/lib/jvm/java-7-oracle/jre/bin/java After this, the jdk 1.7 can be seen from Sonar's setting:

Is it possible to run the MSBUILD.SONARQUBE.RUNNER on a CSProj file as opposed to a solution?

梦想与她 提交于 2019-12-12 06:05:28
问题 I have a TFS xaml Build template that runs the msbuild.sonarqube.runner start (and end) before and (after the) msbuild task in the xaml. It all works well enough with a .sln file. As the file under build. However, when I attempt to use this on a build that runs msbuild on a .csproj file the end process reports that it cannot find the postprocess exe. "Execution failed. The specified executable does not exist: .sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe" there no error indication

Setting C# 6.0 rules in SonarQube 5.1

廉价感情. 提交于 2019-12-12 03:32:33
问题 I installed SonarQube version 5.1 and running it against C# code. The results of the analysis were quite OK, but i was expecting that Sonar would point out the issues based on the latest C# 6.0( which is current now) features too, which seems missing. Can anyone let me know if i can add new C#6.0 features in some sort of plugin? I am not sure if i can add custom rules for C#, as i couldn't find in their website for c#( found here- http://docs.sonarqube.org/display/DEV/Writing+Custom+Rules

How can I change the working directory of MSBuild.SonarQube.Runner.exe?

寵の児 提交于 2019-12-12 03:23:42
问题 We are currently calling the runner like this: D:\BuildTools\MSBSonarQubeRunner-1.0.2\MSBuild.SonarQube.Runner.exe begin /k:"someKey" /n:"someName" /v:"someVersion" /d:sonar.resharper.cs.reportPath="K:\somePath\resharper.xml" We want to have the output of sonar in K:\.sonarqube We tried to use the command line arg /d:sonar.working.directory=K:\\.sonarqube but that didn't work. We also tried setting the working directory in the SonarQube.Analysis.xml like this: <Property Name="sonar.working

sonar ERROR Timeout trying to lock table “PROJECT_MEASURES”; SQL statement:

纵饮孤独 提交于 2019-12-12 01:27:53
问题 I'm using SonarQube 5.1 (using default Database H2) with Gradle 2.3/4. In SonarQube, I'm using a trial version for Views portfolio management plugin which (combines SonarQube project's metrics across as a component and lets you create views like all projects under a given team, department, manager, all app projects, all service projects etc. sonarRunner task is working successfully in Gradle. Once the analysis is done, I have to run another command to pick the latest analysis for "Views