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
0
votes
1 answer

Sonarqube 5.5 - Allowing MSBuild Runner to create projects during scan

We currently use the MSBuild Scanner for our static code analysis at build time via bamboo. The Bamboo plug-in as far as I can tell does not support the scanner at this time so I am using command line. I want to enable it for branches so we can…
theoneandonlyak
  • 490
  • 4
  • 7
0
votes
1 answer

Sonar build gives error for :sonar-maven3-plugin:jar:5.4

I have upgraded the Sonar version to 5.4 and while running the POM to generate the report, getting the below error: [INFO] [INFO] --- sonar-maven-plugin:2.1:sonar (default-cli) @ HEP05_NY_R2.0_JUNIT_ProviderInformationComponents --- [INFO] SonarQube…
Sakthisiga
  • 73
  • 1
  • 2
  • 14
0
votes
0 answers

Analysis of sonar failed - and throwing the org.sonar.runner.impl.RunnerException: Unable to execute Sonar

I'm integrating the sonar for my ant build. And i add the below properties in my file. I'm using SonarQube 4.3.3 with Sonar-ant-task 2.2.jar. I'm using Jenkins to make the build.
sangeetha kannan
  • 125
  • 1
  • 11
0
votes
1 answer

Why is Gradle / / Sonar Jacoco looking for dir and also project?

Background: We have two subprojects each with many sub-sub-projects. The root project is an empty parent. We have one project that is strictly for the flyway plugin. Often times names do not match directories. For perspective, settings.gradle is…
user447607
  • 5,149
  • 13
  • 33
  • 55
0
votes
0 answers

Sonar 4.5.1 with C# plugin 3.3 - How to check multiple assemblies with fxcop

We have a Sonar 4.5.1 setup with C# plugin version 3.3 installed. This server is shared by few projects. There is a .NET 4.6 project which has been started off recently and Jenkins 1.655LTS is the CI tool for the project. I have setup Jenkins…
0
votes
0 answers

Sonarqube not generating Technical debt data (Debt and Issues) when connecting to Oracle

I can run SonarQube without any database and works fine. When i configure below properties in file sonar.properties to use Oracle database then the scan is not generating Technical debt data (Debt and Issues).Duplications and Structure information…
user3366906
  • 149
  • 2
  • 11
0
votes
0 answers

Sonarqube 4.5.1 not displaying metrics even though analysis is successful in jenkins

I configured a Sonar ANT job in jenkins with sonar.projectKey, sonar.projectName and sonar.projectVersion during February month. After build success, the sonar dashboard of ant job displayed the issues/metrics in sonarqube widgets. But now (April…
0
votes
0 answers

While running ant task for sonar5.1 using jacoco plugin

I am new with this sonar code coberage. I am trying to genrate code coverage for android unit test. I am getting below mentioned error while exucuting ant sonar to genrate code coverage. Sonar configuration is: Sonar5.1 with…
Mubarak
  • 1,419
  • 15
  • 22
0
votes
1 answer

Error while running sonar-scanner and sonar server on diffrent machine

I have installed sonarqube server on the windows machine. It is working for the .net/php projects successfully with sonar-scanner(sonar-scanner on same machine). But for the iOS project, I am using the free plugin for objective C. For this I am…
Uttam Kadam
  • 458
  • 1
  • 7
  • 20
0
votes
0 answers

How can I integrate my Maven Java application with SONARQube 5.4?

Already installed SonarQube successfully. Its running now. I'm following the url click but not working as expected. I want to integrate my Maven Java appliacation with SonarQube5.4 and MySQL5.7.12. Also need to execute the javascript unit testing…
Gnik
  • 7,120
  • 20
  • 79
  • 129
0
votes
1 answer

SonarQube - How to activate source syntax-highlighting after 5.0 migration WITHOUT make another analysis of components?

I know that the 5.0 release note say "After the migration, source syntax-highlighting won't be available on a project until it has been successfully analyzed" BUT, i can't imagine that there is no way to activate just by running another analysis. In…
RastaChaum
  • 26
  • 2
0
votes
1 answer

SonarQube /api/resources - 500 Internal Server Error

I'm using the [slack-sonar-pusher][1] on the Jenkins, but when I run the job I got this output: [ssp] Calling SonarQube on: http://xxx.xxx.x.xx:9000/api/resources?metrics=alert_status,quality_gate_details&includealerts=true [ssp] Got a non 200…
rafaelasguerra
  • 2,685
  • 5
  • 24
  • 56
0
votes
3 answers

sonar coverage reports for multiple java unit test reports

i have a java project called Customer, under this i have another 8 modules, among these 5 modules have junit test classes and have separate ant build files for each modules. I have created(generated unit test reports) jacoco.exec for each project,…
0
votes
1 answer

Gradle: try to skp sonarqube results in error

I have a gradle script that uses Sonarqube plugin (org.sonarqube). If I let the publish task depends on it, it works fine. The problem is to run sonarqube only if a condition is true. So I tried (as described in gradle documentation) all of these…
Frank Winkler
  • 409
  • 6
  • 16
0
votes
2 answers

Why should run first mvn clean clover2:setup install clover2:clover, then: mvn sonar:sonar

Based on the question Sonar + Clover only runs on src-instrumented, it is suggested using first mvn clean clover2:setup install clover2:clover, then: mvn sonar:sonar. Just wonder why we cannot use mvn clean clover2:setup install clover2:clover…
Ken
  • 3
  • 2