Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.
Questions tagged [sonarscanner]
195 questions
9
votes
1 answer
sonar-scanner command not found in mac
i followed the directions as per the SonarQube documentation. I installed the sonarqube and sonar-scanner from the instructions into my applications folder. But having trouble getting my terminal to recognize sonar-scanner. I checked my path…

turtle_in_mind
- 986
- 1
- 18
- 36
8
votes
2 answers
Angular 12 / 13 : Not able to integrate code coverage report with sonarqube
When I run ng test --code-coverage, and then run sonar-scanner, still not able to see coverage report on sonar server.
I tried setting up new project using Angular 13 and setting up as per official documentation. Still no luck.
My Sonar server…

HRMS Admin
- 93
- 1
- 1
- 5
8
votes
3 answers
Sonarqube gives node.js error while running sonar-scanner
While running sonar-scanner via Jenkins, we are getting the following error message. Jenkins and Sonarqube have been installed in Window Server 2008 OS. I have also tried installed node.js in the server but still, I am getting the same error…

Vivek
- 85
- 1
- 1
- 6
5
votes
0 answers
SonarScanner running inside the docker container cannot access source code
I'm trying to scan the source code of some project with SonarQube and SonarScanner running locally on Docker, OS: Windows.
By providing the next command in the terminal I'm trying to run container with SonarScanner which should scan the code in my…

hellneck
- 59
- 3
5
votes
6 answers
Error "Could not find 'java' executable in JAVA_HOME or PATH" while installing sonar-scanner with sonarqube google compute instance
I've been trying to configure sonarqube to work with cloud build trigger and want to use bitnami's sonarqube compute instance installation but when I installed sonar-scanner using this guide:…

Rehan
- 408
- 1
- 6
- 17
5
votes
2 answers
Sonarqube coverage 0% in react js
I have written some unit tests in jest. All of them are successful. Able to view test coverage report generated by jest
But my sonarqube dashboard always shows 0% on coverage but unit tests are being detected.
I am using jest-sonar-reporter for…

Vasanth Kumar
- 311
- 1
- 3
- 9
5
votes
1 answer
How to configure SonarQube for Typescript based AngularJS project?
I have set up SonarQube and SonarScanner and managed to scan my project. I can see the metrics on my screen except for code coverage, which is always 0%. What am I missing?
#----- Default SonarQube…

oatcrunch
- 443
- 9
- 18
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
4
votes
2 answers
CodeCoverage not showing in SonarCloud in a Python project
I'm trying to include the codecoverage from my Python project.
First I executed the command py.test --cov=tests/ --cov-report xml:cov/coverage.xml to run the tests and report to cov/coverage.xml
My sonar-project.properties…

Lucas Scheepers
- 505
- 6
- 24
4
votes
2 answers
Package 'dotnet-sonarscanner 5.0.4' has a package type 'DotnetTool' that is not supported by project 'Project.xyz'
There is a total of 6 projects in a solution. dotnet-sonarscanner package is only working in 4 of them.
I am getting the following error that this package is not supported by the project 'project.xyz'
All the projects have as netcoreapp3.1 but…

Bhavya Shah
- 73
- 2
- 9
4
votes
1 answer
Jenkins unable to connect SonarQube using https & SSL
Environment details
SonarQube – Version - 6.7.6(LTS)
OS – CentOS – 7.6
Protocol- Https
Certificate: SSL – Self Signed.
Jenkins: 2.164.1
Sonar Scanner Version - 3.3.0.1492
Nginx configured for reverse proxy.
On my Sonarqube server, I have created…

user4948798
- 1,924
- 4
- 43
- 89
3
votes
1 answer
Sonar Scanner error in Azure DevOps - ERROR : Not authorized. Please check the properties sonar.login and sonar.password
I’m trying to integrate SonarQube with Azure Devops. I have done the configuration in the SonarQube administrator ( Administration > Configuration > General Settings > ALM Integrations , select the Azure DevOps tab, and click the Create…

shaik idris
- 31
- 1
- 2
3
votes
2 answers
sonar-project.properties doesnt seem to be picked up when trying to Run SonarScanner from the Docker image
I have been trying to do the "Running SonarScanner from the Docker image" from the documentation"
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner…

Alexis BeltranMeza
- 31
- 3
3
votes
1 answer
Sonar-scanner in jenkins error does not match any configured installation
I installed Sonarqube plugin in Jenkins,
already configured the sonarqube server and sonarqube scanner from the Jenkins configuration:
but when I ran the pipeline I got this error:
ERROR: SonarQube installation defined in this job (sonarqube) does…

Darryl RN
- 7,432
- 4
- 26
- 46
3
votes
2 answers
Code coverage - Azure Pipelines SonarQube
I was using Azure pipelines to run Unit tests and SonarQube integration. When I use cobertura for unit tests, I am unable to get code coverage results passed onto SonarQube, although I see the results in pipeline logs. However, this same thing works…

user15338350
- 203
- 1
- 4
- 9