Questions tagged [sonarqube-scan]

SonarQube Scanners run the analyzers on code. Use this tag for questions related to any of the scanners: SonarQube Scanner for CLI, Maven, Gradle, Jenkins, etc.

1464 questions
5
votes
1 answer

Error in SonarQube Scanner Execution [Windows - Linux Master-Slave]

I have SonarQube Server and Jenkins instance running on Windows machine. I have created Jenkins job to generate Code Coverage Report with SonarQube. This job runs on Linux machine Build Code Run Unit Test-Cases Run Sonar Scanner But later I get…
kaps
  • 186
  • 4
  • 18
5
votes
1 answer

How does sonarQube calculate technical debt

In the new version of sonarqube, the documntation states that technical debt (TD) TD= Effort to fix all maintainability issues. The measure is stored in minutes in the DB. An 8-hour day is assumed when values are shown in days. However, how does…
RAF1409
  • 51
  • 1
  • 1
  • 3
5
votes
0 answers

Getting StackOverflow error during sonar scanner execution

Getting the following stack overflow error log during one of the sonar scanner execution ERROR: Error during SonarQube Scanner execution java.lang.StackOverflowError at com.google.common.collect.Hashing.smearedHash(Hashing.java:51) at…
Manoj Kumar
  • 289
  • 4
  • 12
5
votes
3 answers

SonarQube: Typescript module not found

I am using SonarQube to analyze a Typescript project. Analysis runs in a Gitlab pipeline stage, using a docker image with sonar-scanner. Here is some output: INFO: Download sonar-flex-plugin-2.3.jar INFO: Download sonar-gitlab-plugin-2.1.0.jar INFO:…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
5
votes
2 answers

Run analysis for a project only with a set of specified languages

Sonar scanner runs analysis for all the available plugins installed in SonarQube. But for some of the projects analysis should be run only for some languages(For example Java and Javascript). sonar.language parameter allows me to set only one…
Manoj Kumar
  • 289
  • 4
  • 12
5
votes
2 answers

Error while executing Sonarqube analysis " Insufficient privileges"

I am trying to analyse java code through sonarqube. We have created a sonarqube server in our local environment and not using sonar cloud. I tried using sonar maven plugin initially form this link Sonar-Maven Plugin However I faced an…
VVP
  • 766
  • 4
  • 14
  • 39
5
votes
2 answers

sonar-scanner.bat fails with 401 on api/settings/values.protobuf when executed by jenkins pipeline

When I execute the pipeline below I get a 401 error on http://mysonarhost.my.domain:9000/api/settings/values.protobuf. The same command executes without errors from a command prompt. The api/settings/values.protobuf URL can be accessed using a…
carl verbiest
  • 1,113
  • 1
  • 15
  • 30
5
votes
0 answers

'Generic Coverage Report' skipped because one of the required properties is missing

Are using the SonarQube sonar.testExecutionReportPaths to import test execution Are using the example from the doc in: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data Using the example xml from the doc:
5
votes
1 answer

Is SonarQube VSTS Task version 3.0.1 unable to support multiple msbuild types?

I am trying to make use of SonarQube task targeting dotnetcore solution, but the within the solution there are a couple of projects that use dotnetstandard framework. So when attempting to analyze the code, the new SonarQube task throws an error…
5
votes
1 answer

TypeError can be thrown as "key" might be null or undefined here in SonarQube

In JQuery Library jquery-1.4.1-vsdoc.js, Following is the code block : jQuery.fn.extend({ data: function( key, value ) { if ( typeof key === "undefined" && this.length ) { return jQuery.data( this[0] ); } else if ( typeof key ===…
Anurag
  • 61
  • 4
5
votes
2 answers

See history of Sonar analyses in SonarQube

I am triggering a Sonar analysis from Jenkins whenever a user commits any change to any branch of my project. In SonarQube I see the project analysis result, and quality gate status, for the most recently run analysis. It only shows the most…
jason.zissman
  • 2,750
  • 2
  • 19
  • 24
5
votes
1 answer

SONARQUBE lcov import error - Could not resolve 1 file paths

I am getting the below error whenever I try to import lcov report in to SONAR 15:00:17.230 WARN: Could not resolve 1 file paths in [/opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/coverage/lcov.info], first unresolved path:…
Learner
  • 2,303
  • 9
  • 46
  • 81
5
votes
1 answer

Why SonarQube Scanner for MSBuild does not work with MSBuild 15.0?

I rencently upgraded my Visual Studio from 2015 to 2017. The build process now uses MSBuild 15.0 so I can use C#7. I installed a SonarQube server from the latest version 6.3 and I use the latest version of the C# scanner 2.2.0.24. I'm trying to make…
Hemel
  • 313
  • 3
  • 13
5
votes
1 answer

How do I use Sonar Plugin with Hudson?

I want to use SonarQube for Code Quality analysis. I have Hudson as the CI tool and have integrated clearcase. How do I use SonarQube when the Ant build happens? Do I need to install SonarQube in a server and use a plugin to access it? Can someone…
user3437212
  • 637
  • 1
  • 10
  • 20
5
votes
2 answers

SonarQube Build Breaker plugin: Report processing did not complete successfully: FAILED

I am trying to upload reports generated by Istanbul to Sonar dashboard using a gulp task and it fails with the below error. Looks like the Build Breaker plugin in SonarQube is timing out before it can upload the report to Sonar. Any way that i can…
joy779
  • 61
  • 1
  • 2