Questions tagged [sonarqube7]
16 questions
11
votes
1 answer
How does SonarQube calculate the overall coverage?
The image above shows the SonarQube coverage for one of my folders, but if you take the average of the percentages of all files in that folder, it will amount to 49%, yet SonarQube will display 31.4%. If not by taking averages, how does SonarQube…

m-a-r-c-e-l-i-n-o
- 2,622
- 18
- 26
3
votes
0 answers
Display Sonar Code Coverage with jacoco.exec file in Sonar LTS 7.9.2
Recently I have updated SonarQube 7.9.2 in which sonar.jacoco.reportPaths property has been deprecated and need to use sonar.coverage.jacoco.xmlReportPaths. I don't have JaCoCo xml report generated and I am using ant for build and JUnit.
Please…

Aravind
- 53
- 1
- 8
3
votes
1 answer
SonarQube POST api/permissions/add_user , to give project permissions to many users programatically?
We have used AD/LDAP for authentication in SonarQube 7.0...
We achieved AD/LDAP authentication successfully...However we want to give project level permissions to different users through program (php / Python).
SonarQube suggests to use web api as…

Asmi
- 651
- 1
- 8
- 16
3
votes
0 answers
SonarQube 7: New code not detected by sonarqube
I have been trying to find new code coverage in sonarqube. I am following below steps to get the new code committed to git so I can find coverage on it.
I have two git branches x and y. I am running sonar analysis on x and can see the analysis.…

learner
- 786
- 7
- 17
1
vote
1 answer
load called twice for thread 'Worker 0 (UUID=AXInwYzVDFskptgsIgOb) on ce-worker-0' or state wasn't cleared last time it was used
Facing the below error in SonarQube 7.1 Community Edition.
Please assist to solve this error. Any help will be highly appreciated.
Error Details
java.lang.IllegalStateException: load called twice for thread 'Worker 0 (UUID=AXInwYzVDFskptgsIgOb) on…

sangeetha
- 11
- 4
1
vote
1 answer
Does mvn verify sonar:sonar command pushes the code to sonar web dashboard?
I'm using below command :
mvn --batch-mode verify sonar:sonar
-Dsonar.host.url=$SONAR_URL
-Dsonar.login=$SONAR_LOGIN -Dsonar.analysis.mode=preview
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA
…

user2073484
- 57
- 6
1
vote
2 answers
Sonarqube Loading for ever
I have setup my sonarqube server in centos 7. I am using sonarqube 7.4. I have installed httpd and trying to access sonarqube dashboard. This will load for ever as I attached in image.
Loading....
I tried deleting data/es5 but no use. My…

thejaswi
- 11
- 1
- 4
1
vote
0 answers
SonarQube 7.1 upgrade bug LDAP
I have updated the sonar: 6.7.1 -> 6.7.3 -> 7.0 -> 7.1. LDAP authorization (Authentication failed)/this a bug has ceased to work at version 7.1? to v7.0 LDAP works perfectly.
2018.05.18 11:06:14 ERROR…

Воффка Сергеевич
- 11
- 2
0
votes
0 answers
How can i get the RCI and Code Coverage number from a Branch by a query in a Sonarqube Database?
I need some help with Sonarqube Database.
Every month, I'm extracting some indicators from the Sonarqube database as RCI and Coverage.
We use Sonar 7.1 and Branch Plugin Community Edition in version 2.0.0.0.
When we execute a select in a sonar…
0
votes
0 answers
Sonarqube 7.9 fresh installation, unable to login
I've installed on Centos7: sonarqube 7.9 , postgresql 9.6.14, java 11.0.4.
Updated sonar.properties, indicated:
- sonar.jdbc.username
- sonar.jdbc.password
- sonar.jdbc.url=jdbc:postgresql://localhost/sonar
Configured Systemd service and adjusted…

Kirill
- 77
- 1
- 1
- 4
0
votes
1 answer
migrating specific project in sonarqube 7.3
We are planning to migrate from Sonarqube 5.6 version to Sonarqube 7.3 developer edition.
Because of huge lines of code we are planning to migrate specific project to Developer edition to regulate cost Hence Is there any way in to migrate only…

Ankit Gupta
- 23
- 1
- 7
0
votes
1 answer
How to set SonarQube Quality Profile rule
In SonarQube, there is one rule for Java Resources should be closed (squid:S2095). This rule has a parameter excludedResourceTypes.
How to set this parameter?

devopsfun
- 1,368
- 2
- 15
- 37
0
votes
1 answer
How to retrieve sonar-project-properties from gradle based project
current state
I am currently working on a java application that is supposed to clone different projects locally and the generate the sonar-project.properties file to prepare for SonarQube analysis.
The application can do this for maven based…

Modou
- 1
- 1
- 1
0
votes
2 answers
Can't use port 80 on SonarQube
The first time when I tried to run SonarQube with root user this fails. Searching in internet I find that the new Sonar should be execute by a non-root user. I created the user sonar with the folow command useradd -m -s /bin/bash sonar and I…

Reinier Hernández
- 428
- 1
- 6
- 22
0
votes
1 answer
Sonarqube 7 unable to start due to elastic search binary not found
I have setup sonarqube 7, problem is i am getting below error while starting it -
2018.03.27 08:02:15 ERROR app[][o.s.a.p.SQProcess] Fail to launch process [es]
java.lang.IllegalStateException: Cannot find elasticsearch binary
at…

Ankur Vaish
- 149
- 9