sonar-runner

TeamCity dotCover report path for Sonar

流过昼夜 提交于 2019-12-03 07:30:22
问题 I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage. My next step is the sonar-runner. The configuration that currently exists is; gallio.mode=dotCover, sonar.gallio.mode=reuseReport but I also need sonar.gallio.reports.path. Does anybody know the path to the dotCover report generated in the the previous step? 回答1: I couldn't find a way to do this using the built in NUnit runner.

Sonar - OutOfMemoryError: Java heap space

前提是你 提交于 2019-12-03 04:48:20
I am deploying a large Java project on Sonar using "Findbugs" as profile and getting the error below: Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space What i have tried to resolve this: Replaced %SONAR_RUNNER_OPTS% with -Xms256m -Xmx1024m to increase the heap size in sonar-runner bat file. Put "sonar.findbugs.effort" parameter as "Min" in Sonar global parameters. But both of above methods didn't work for me. Ryan Shillington I had the same problem and found a very different solution, perhaps because I'm having a hard time swallowing the previous

How to export results as a PDF report?

元气小坏坏 提交于 2019-12-03 02:29:02
I am using SonarQube 5.6.3. How can I create a SonarQube analysis details report as a PDF form, an excel report, or an html formatted report? No plugin seems to be available for this. I was unable to generate an html file using below configuration: sonar.issuesReport.html.enable = true sonar.issuesReport.html.location = c:\ sonar.issuesReport.html.name = sample How can I export these details from SonarQube? For the sonar-maven-plugin it works the same. Just add these two properties to the pom file: <project xmlns="...> ... <properties> <sonar.analysis.mode>preview</sonar.analysis.mode> <sonar

sonarqube typescript plugin: “You must install a plugin that supports the language”

梦想的初衷 提交于 2019-12-02 23:29:22
I'm trying to setup SonarQube to analyse my TypeScript project using this plugin: https://github.com/Pablissimo/SonarTsPlugin However, I'm encountering an error like: > C:\sonarqube\sonar-runner-2.4\bin\sonar-runner.bat ... INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 3.006s Final Memory: 18M/613M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar

TeamCity dotCover report path for Sonar

一笑奈何 提交于 2019-12-02 21:03:39
I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage. My next step is the sonar-runner. The configuration that currently exists is; gallio.mode=dotCover, sonar.gallio.mode=reuseReport but I also need sonar.gallio.reports.path. Does anybody know the path to the dotCover report generated in the the previous step? I couldn't find a way to do this using the built in NUnit runner. I managed to get it working by using a powershell build step to manually call the required commands. First

Sonar Runner 404 localhost

∥☆過路亽.° 提交于 2019-12-02 11:00:47
I'm trying to get Sonar working locally on an OS X box to do some proof of concept work, I've downloaded the following: Sonar Qube: 4.5.6 Sonar Runner: 2.4 Sonar Qube is configured as: sonar.web.host=localhost sonar.web.context=/sonar sonar.web.port=9000 When I try and use Sonar Runner with one of the example projects I get the following error: ERROR: Error during Sonar runner execution ERROR: Fail to request server version ERROR: Caused by: Status returned by url : 'http://localhost:9000/sonar/api/server/version' is invalid : 404 If I copy and paste the URL from the console into the browser

Where is line based SCM blame information stored?

故事扮演 提交于 2019-12-02 08:14:20
I can see line based SCM blame information in UI, but where is it stored and how can I retrieve through web API? I am using Perforce plugin. The issue is that the Perforce plugin finds the blame information from history, and because of that if a user has created a debt in a past branch, it still shows on his name in the current branch analysis. The Perforce plugin does not have any such way to disable looking into history beyond the current branch. I need to find another way to find out, if the debt is really introduced in this branch or not. The real question here is how to find out this: I

Class not found error when running sonarrunner

∥☆過路亽.° 提交于 2019-12-02 07:51:08
I am getting class not found error. The the class is not accessible through class loader and an error is being prompt when running the sonarrunner from gradle. These classes are included as dependencies in compile time in gradle and gradle build works fine. How to include these classes for sonar ? 14:53:24.322 INFO - Load module settings 14:53:24.335 INFO - Base dir: /Users/srao1/Documents/GradleTest/lds_warehouse/lds_warehouse_base 14:53:24.335 INFO - Working dir: /Users/srao1/Documents/GradleTest/lds_warehouse/build/sonar/lds_warehouse_lds_warehouse_base 14:53:24.336 INFO - Source paths: src

Class not found error when running sonarrunner

喜你入骨 提交于 2019-12-02 07:19:11
问题 I am getting class not found error. The the class is not accessible through class loader and an error is being prompt when running the sonarrunner from gradle. These classes are included as dependencies in compile time in gradle and gradle build works fine. How to include these classes for sonar ? 14:53:24.322 INFO - Load module settings 14:53:24.335 INFO - Base dir: /Users/srao1/Documents/GradleTest/lds_warehouse/lds_warehouse_base 14:53:24.335 INFO - Working dir: /Users/srao1/Documents

Getting error while running sonarqube scanner

本小妞迷上赌 提交于 2019-12-02 04:38:29
问题 Getting the following error in SonarQube while running the build from TeamCity Caused by: Start pointer [line=239, lineOffset=1] should be before end pointer [line=239, lineOffset=1] Updated the C# plugin, installed VB.net plugin and added the Scanner for MSBUILD latest version sonar-scanner-msbuild-2.2.0.24. Still getting the error. 回答1: Unfortunately we introduced a bug in the latest release. Here's the corresponding ticket: https://jira.sonarsource.com/browse/SONARCS-629. We're working on