sonarqube-scan

How to install SonarQube with Open JDK 11

一曲冷凌霜 提交于 2021-01-28 07:44:20
问题 I am trying to install SonarQube 8.5 (community version) on my local machine . My machine already has Java JRE 8 installed. SonaQube has pre-requirement JRE 11 or Open JDK 11 . Since you cannot download JRE 11 anymore, I decided to go with Open JDK 11 I want to set SonarQube to use specific JDK. How do i do that? Quick SO search suggest to use wrapper.java.command in wrapper.conf file, but this line is not available SonarQube 8.5, OS Windows: 10 回答1: If you want your sonarqube to use specific

Jenkins can't reach Sonarqube

五迷三道 提交于 2021-01-27 19:41:38
问题 I am currently trying to get my Jenkins/Sonar integration to work. Here is what I have: Jenkins is working Sonarqube is working (reachable from webinterface) Ports are open However! I tried all possible settings, Jenkins insists that Sonarqube is Localhost:9000, no matter what I tell it (and even if, this should work too). This leads to following: and ultimately lets the build fail. What could I try to rectify this? 回答1: localhost:9000 is the default sonar qube url, regarding the official

Jenkins can't reach Sonarqube

若如初见. 提交于 2021-01-27 19:16:10
问题 I am currently trying to get my Jenkins/Sonar integration to work. Here is what I have: Jenkins is working Sonarqube is working (reachable from webinterface) Ports are open However! I tried all possible settings, Jenkins insists that Sonarqube is Localhost:9000, no matter what I tell it (and even if, this should work too). This leads to following: and ultimately lets the build fail. What could I try to rectify this? 回答1: localhost:9000 is the default sonar qube url, regarding the official

code coverage shows zero percentage - SonarQube

那年仲夏 提交于 2021-01-07 03:59:06
问题 We are using SonarQube 6.4 Code coverage for both front end code(JavaScript) & back end code(java) shows 0% Developers claim they have unit test cases for every function or class they write This application has database layer What does code coverage 0% mean? 回答1: As stated in the docs sonarqube does not run tests, it simply imports report generated by other tools to display them along the other analysis. So my guess is that you have not configured your CI chain to generate test reports to be

SonarQube: (Catch a list of specific exception subtypes instead)

为君一笑 提交于 2020-12-27 06:40:46
问题 I have a question about generic exceptions. How would we know which non-generic exception to use when you have a try that does multiple things. For example: @PostConstruct protected void init() { try { HttpSession session = request.getSession(); String policyInfo = (String) session.getAttribute("policyInfo"); if(session.getAttribute("faxNumber") != null) { faxNumber = (String) session.getAttribute("faxNumber"); } policyNumber = (String) session.getAttribute("policyNumber"); JSONObject

Project code is not being analyzed for sonarqube

空扰寡人 提交于 2020-12-16 04:48:48
问题 I have a repo in azure DevOps with only folder as test. Now, I have given the task structure in this way in azure DevOps. But I cannot see the code getting analyzed in sonarqube. The code tab shows blank. Could someone help me with where I am going wrong?? I do not want to give folder name in sources..I want whatever code I add in the branch to be analyzed. edit: Just realized this is happening only for feature short lived branch..My sonarqube version is 8.0 steps: task: SonarQubePrepare@4