Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.
Questions tagged [sonarscanner]
195 questions
2
votes
2 answers
SonarQube post processing fails with unknown reason
SonarQube is failing without any meaningful error message for a .NET C# project.
I tried running the end command with the -X option but the -X format is unrecognized.
SonarScanner.MSBuild.exe end -X /d:sonar.login="87195"
Any ideas on what could…

user1554876
- 192
- 3
- 19
1
vote
0 answers
How to embed SonarQube Quality gate condition check in Dockerfile for sonar analysis of a dot net project
We have a dot net app and we use Jenkinsfile for the build.
Jenkinsfile performs docker build for entire app that has a dockerfile with below instructions for sonar analysis :-
RUN if("$Env:SKIP_SQ" -eq 'NO') {…

Ashley
- 1,447
- 3
- 26
- 52
1
vote
0 answers
Sonarqube User Wise Report
I have been trying to create a CI CD using GitLab, Jenkins, and sonarqube for the last week. I have a project with multiple people working on it. and the pipeline is working fine. now I have a doubt about sonar scanning. Can we get user-wise…

Amal Joseph
- 23
- 1
- 5
1
vote
0 answers
sonar scanner error "Unable to load component class org.sonar.scanner.sensor.ModuleSensorsExecutor"
Team,
my same steps locally from MacBook work fine and when I built the same in shell script and invoked from Jenkins pipeline I get this error. any hint is it permission related because am setting Jenkins as USER in docker file? or is it bug? no…

AhmFM
- 1,552
- 3
- 23
- 53
1
vote
1 answer
SonarScanner CLI error: failed to request and parse localhost:9000
When using SonarScanner against a local source, following the suggested manual recipe for classic .NET and MSBuild, I find the following error (look at the bottom line):
SonarScanner for MSBuild 5.5.3
Using the .NET Framework version of the Scanner…

Gerard Jaryczewski
- 565
- 6
- 17
1
vote
0 answers
Sonarqube scanner report generation
Is there any way we can download the sonarqube scanner report in json format using Command Line CLI .Kindly let me know the detailed steps.
As i have added this sonar-scanner -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json…

swati
- 11
- 2
1
vote
1 answer
SonarQube server [xxx] can not be reached
Please I have an issue with my sonarqube instance. I installed a personal sonarqube instance on our VPS under the domain name 'https://sonar.pamwork.com' and it is loading perfectly on the browser. But now I have an Angular project that I need to…

Donald Hunter Kengue
- 11
- 1
- 3
1
vote
0 answers
Steps on how to set up Sonarqube for Xcode/Swif Project
I have been trying to get this done for two days now. I have had different error to deal with. I am Using an M1 Apple Chip Mac pro and Xcode 13.4 and it has been difficult to get Sonarqube running. I finally found a docker image which is M1 specific…

Darotudeen
- 1,914
- 4
- 21
- 36
1
vote
0 answers
Split Sonar Scanner into Analysis and Code Coverage
we are running SonarQube with the maven Sonar Scanner Plugin. Everything works well so far in our GitLab-Pipeline.
Now I would like to improve the feedback-loop. So I thought about running the sonar-part with the code-analysis already parallel to…

digital-h
- 301
- 3
- 11
1
vote
2 answers
SonarScanner fails with apt-get not found
I have installed SonarQube on a ubuntu machine via a docker image. All working fine and I'm able to log in without issues.
Have connected to our GitLab installation and see all available projects, when I try to configure the existing pipeline with…

Mario
- 582
- 5
- 18
1
vote
0 answers
SonarScanner for AzureDevOps 5.4.0 not working with .NET 6 projects - Uses Framework version instead of Core version
SonarQube 9.3.0.51899, SonarScanner for Azure DevOps 5.4.0
Trying to Scan .NET 6 projects in Azure Pipelines
Here is my SonarQubePrepare step:
- task: SonarQubePrepare@5
inputs:
SonarQube: 'Pipeline Sonarqube Connection'
…

Josh
- 31
- 2
1
vote
0 answers
Not able to generate sonarqube report locally as I am getting the EXECUTION FAILURE with error log :Tasks support was removed in SonarQube 7.6
My requirement is to get the code coverage in local using Visual studio :
SonarQube server is up . I have attached the snapshot as shown :
jvm 1 | 2022.02.14 16:04:07 INFO app[][o.s.a.SchedulerImpl] Process[ce] is up jvm 1 | 2022.02.14…

Ayushi Gupta
- 173
- 1
- 2
- 13
1
vote
1 answer
Merging two different sonar reports from same project
I have a legacy project, which is having 40M+ lines of code. I just want to configure the sonar during build but when I run sonar with default settings, it fails with OutOfMemoryException or with TimeOutException.
I got to know that this is because…

Mukul Bindal
- 351
- 1
- 14
1
vote
0 answers
How to solve SonarScanner execution java.lang.OutOfMemoryError: Java heap space?
I am using pipeline this pipeline
Project size approx(500MB).
I am getting errors during scanning code:
ERROR: Error during SonarScanner execution
java.lang.OutOfMemoryError: Java heap space...more
Also, I have set the below config and Also I…

Paras Nakum
- 238
- 2
- 8
1
vote
1 answer
SonarQube 7.9.1 not able to scan .cs and sql files for .net project running through Jenkins
I have SonarQube version 7.9.1 and I am running sonar scan through Jenkins. It scans all the files but is unable to scan .cs and sql files for my MS project. How can I resolve this…

SVD
- 385
- 4
- 24