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.
Questions tagged [sonarqube-scan]
1464 questions
0
votes
1 answer
Groovy test files being reported as source files
I am using the SonarQube Gradle plugin to send the metrics to Sonar with this configuration in build.gradle:
sonarqube {
properties {
property 'sonar.host.url', 'http://localhost:9000'
}
}
When I enable the Groovy plugin on the server,…

GreenSaguaro
- 2,968
- 2
- 22
- 41
0
votes
1 answer
Combine Jacoco Test Coverage for Sonar
I have a Jenkins instance which runs two different jobs for two sets of tests, one for unit tests and one for integration tests, and both reports the coverage of tests to Sonar using the Jacoco plugin. However, when the second of the two jobs…

victoryNap
- 134
- 10
0
votes
1 answer
Sonarqube Zapscan and Dependency Check
I am using sonar zap scan and sonar dependency check plugins, when i run sonar standalone analysis through jenkins , the zap scan report is generated, and when we generate dependency check report for the same project the zap scan report is getting…

rama krishna
- 17
- 2
- 9
0
votes
1 answer
no matter what i do sonar refused to go beyond Unsupported major.minor version 52.0 in jenkins
I am trying to set up devops and have reached up-to sonarQube integration in jenkins. Now its not moving beyond "Unsupported major.minor version 52.0". I had java 1.8 but i installed 1.7 to remove this error. Still coming. Changed java version…

Monica
- 93
- 1
- 12
0
votes
1 answer
SonarQube/ANT Authentication required for 'svn+ssh://
Using fresh installed SonarQube 5.6, my ANT scanner complains svn: E170001: Authentication required for 'svn+ssh://my-server' while getting author (blame) data.
"C:\Program Files\Java\jdk1.8.0_51\bin\java" ...…

hokr
- 590
- 6
- 11
0
votes
1 answer
gradle 2.14 and sonar 5.6 integration
I have a little problem with integration gradle 2.14 and sonarqube 5.6 LTS.
My gradle.build look like below:
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
…

przodownikPracy
- 547
- 2
- 5
- 12
0
votes
3 answers
sonarqube store results in database takes way too long
SonarQube is taking very long time, around 40 to 50 minutes to transfer sonar result to the sonarqube mySQL database.
Jenkins logs:
06:44:33.974 INFO - Execute decorators...
06:47:01.532 INFO - Store results in database
07:26:44.253 INFO -…

Zeeshan
- 11,851
- 21
- 73
- 98
0
votes
0 answers
SonarQube resolving the Internal server error
While running stand alone SonarQube analysis from jenkins, I'm facing the below issue
2016.05.25 06:31:51 ERROR web[rails] /!\ FAILSAFE /!\ Wed May 25 06:31:51 -0400 2016
Status: 500 Internal Server Error
No such file or directory -…

baba yaga
- 119
- 2
- 10
0
votes
2 answers
Integration sonar with jacoco. I see excluded packages in sonar coverage report
I want to migrate from cobertura to jacoco codecoverage tool.
I'm using maven as build tool and I added jococo-maven-plugin in my pom.xml file. its configuration looks like this:
org.jacoco
…

Aliaksei Bulhak
- 6,078
- 8
- 45
- 75
0
votes
1 answer
sonar "measure filter as treemap" color shows Grey boxes instead of green
I configured myproject(maven) on Sonar.I create a 'TreeMap' and set the 'colorMetric' as 'Coverage'. I found that only grey boxes appears there (no colored boxes).
Is there any thing wrong with my configurations?
Here is my sonar.properties…

Happy
- 427
- 2
- 4
- 17
0
votes
1 answer
How to get sonarqube code coverage on tests running on wildfly server
I'm running my integration tests on wildfly server. 1st we deploy our artifact and then another test project will consume the API of deployed project and do complete integration testing. Is there a way to report the code coverage sonarqube ?

dinesh707
- 12,106
- 22
- 84
- 134
0
votes
1 answer
SonarQube: File is not a plugin. Please delete it and restart: sonar-maven-plugin-3.0.2.jar
I am trying to upgrade my SonarQube from SN4.0 to SN5.5. I would like to use the maven scanner(sonar-maven-plugin-3.0.2.jar) so I can make use of the PDF report. Unfortunately, I am hitting "File is not a plugin. Please delete it and restart:…

bullet75ph
- 73
- 1
- 4
0
votes
1 answer
Invalid value of sonar.sources for project:myproject with org.sonarsource.scanner.maven
When i try to launch sonar on jenkins i have the following error :
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project project.pom:
The folder '/path/to/file/project.core/pom.xml' does not…

Totozorus
- 21
- 2
- 5
0
votes
0 answers
Jenkins is not able to copy a JOB with "Execute SonarQube Scanner"
I have a jenkins Job that do two steps.
1) Get source code from GIT
2) Run the source code analisys using SONAR-RUNNER
The Job works fine and I'd like to copy/create a similar Job.
I tried to create a new Job using the command: curl -s…

Fernando
- 371
- 3
- 3
0
votes
1 answer
After upgrade from SonarQube 4.5.4 LTS to 5.3, Ant analysis unable to delete files
We recently upgraded from Sonarqube 4.5.4 LTS to 5.3. After the upgrade, we've been encountering a problem with an analysis conducted via the SonarQube Scanner for Ant.
The relevant log error message:
...
Caused by: java.io.IOException: Unable to…

David M
- 13
- 3