Questions tagged [sonar-runner]

Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...

905 questions
8
votes
3 answers

Is it possible to use environment variable in sonar-project.properties file

I am executing sonar through Jenkins build, there is use-case where 'src' location changes depending upon build so i want to use environment variable for specifying 'src' path. For example in sonar-project.properties i want to specify as shown…
Ganesh Rao B
  • 461
  • 2
  • 8
  • 23
8
votes
1 answer

Running a Sonar Analysis from the Dashboard

Is there a way to run a Sonar 5.1.1 Analysis completely in the Dashboard GUI? If not what are the steps to run it otherwise? I can't seem to find a document that walks you through the steps.
PT_C
  • 1,178
  • 5
  • 24
  • 57
8
votes
1 answer

How to integrate the dotcover HTML reports with sonarqube 4.5?

I have been struggling with this issue. I have been able to generate the HTML reports with the help of DotCover. Also, I have given the path of the reports in the Sonar Portal too under Project Settings--> C# --> CodeCoverage --> DotCoverReportPath…
8
votes
3 answers

Android classes not found during sonar analysis

I trying to set a sonar analysis on an android project The analysis is done with version 4.3 of sonarQube trough sonar-runner, android-plugin install, ANDROID_HOME env variable is set on /path/to/android/sdk, the build is done with ant without any…
8
votes
1 answer

Sonar runner: JAVA_HOME exists but does not point to a valid Java home folder

Situation : I installed Sonarqube on a Win XP 32-bit system. I set all paths as instructed. The server opens up well at localhost://9090. My JAVA_HOME is: C:\Program Files\Java\jdk1.7.0_60; Problem When I run, sonar-runner.bat, I get the following…
Abhishek
  • 743
  • 1
  • 15
  • 28
8
votes
2 answers

Sonar-Runner doesn't index any files

I'm trying to run a sonar analysis on my playframework jave code. There are no files indexed: me@fhnw:/home/mycomp/myReporting/sonar-runner/java-sonar-runner-simple$ /home/me/tmp/sonar-runner-2.4/bin/sonar-runner SonarQube Runner 2.4 Java 1.7.0_55…
myborobudur
  • 4,385
  • 8
  • 40
  • 61
8
votes
1 answer

Get link to Sonar dashboard in Jenkins when calling 'gradle sonarRunner'

With the Jenkins build step Invoke Standalone Sonar Analysis (which is available via the Sonar plugin) you get this nice link to the SonarQube dashboard in the job overview: . I'm not using this build step due to an issue but rather have a build…
Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
7
votes
1 answer

Can't run sonar-scanner inside docker container: Permission denied

I'm trying to build a custom docker image with CI purposes (bitbucket pipelines). After build and test my code, I wish I could run some analysis with sonarqube. On my custom image I tried to install sonar-scanner, so when in the container it will…
Gabriel Araujo
  • 719
  • 3
  • 9
  • 15
7
votes
1 answer

SonarQube with C# plugin with MSBuild Runner does not take exclusions

Currently I have an instance of SonarQube 5.1.2 with C# plugin and MSBuild runner in order to analyze a 1.200.000 LOC project. I intend to reduce the classes that are analyzed, I created a sonar.properties file with the line…
XtianGIS
  • 967
  • 16
  • 39
7
votes
2 answers

Is it possible to tell Sonar the project name from the command line?

With each project created at my company, a new naming convention is used in Sonar. So some projects have their name as abbreviated, and some have their names as camel case, and some projects just have their names as words with spaces. If we could…
cwallenpoole
  • 79,954
  • 26
  • 128
  • 166
7
votes
2 answers

sonar runner showing http://localhost:9000 can not be reached

I am facing the issue after successful installing sonarqube and sonar runner. When I run in project /sonar-runner it is showing error. Anyone can help ? ERROR: Sonar server 'http://localhost:9000' can not be reached INFO:…
user5340537
7
votes
1 answer

Read timed out on /batch/project (SonarQube 4.5)

I am struggling with the following problem. Log of the executed when sonar-runner in Jenkins. SonarQube Runner 2.4 Java 1.7.0_67 Oracle Corporation (64-bit) Windows 7 6.1 amd64 SONAR_RUNNER_OPTS=-Xms256m -Xmx512m INFO: Runner configuration file:…
Jongbum Lee
  • 145
  • 2
  • 8
7
votes
3 answers

SonarQube not picking up Cobertura code coverage

I am analysing a Java project that has been unit tested and Cobertura coverage.xml reported. I am using SonarQube 4.1.1 and latest Sonar Runner. I have successfully imported Cobertura coverage results to Sonar 3.2 and Ant analyzer, but with this new…
user1340582
  • 19,151
  • 35
  • 115
  • 171
7
votes
2 answers

How can I run sonar analysis with a user with no home directory: unable to create user /dev/null/.sonar/cache

I have sonarqube server 4.0 and sonar-ant-task-2.1. My sonar target runs fine on my local RHEL 5 machine but as soon as I promote it to a shared RHEL 5 environment it will be run by a user whose home directory is "/dev/null" apparently. I can't…
green reign
  • 182
  • 2
  • 3
  • 11
7
votes
2 answers

SonarQube - how is it used

I have a simple problem, with a simple answer probably, but I can't find what is it. We want to deploy SonarQube along with Checkstyle and some other tools, but we can't find out is it meant for a centralized, server deployment, or on each developer…