Difference between revisions of "CI/SonarQube"

From OpenMBD
< CI
Jump to: navigation, search
Line 30: Line 30:
 
[[File:localhost9000.png|400px]]
 
[[File:localhost9000.png|400px]]
  
To change the default port, under the header "WEB SERVER" in the file sonar.properties in the map of SonarQube, the # must be removed and now the sonar.web.port can be changed, for example to 5900.
 
  
[[File:sonar_web_port.jpg|400px]]
 
  
 
For SonarQube Scanner:
 
For SonarQube Scanner:
  
 
The following link can be used to install SonarQube Scanner: [https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner SonarQube Scanner].
 
The following link can be used to install SonarQube Scanner: [https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner SonarQube Scanner].
These settings must be filled in the project settings in Jenkins (see "Execute SonarQube Scanner").
+
 
 +
To download SonarQube Scanner click on "Windows 64 bit" and the download will start after clicking on "Ok".
 +
 
 +
[[File:SonarQubeScanner.png|400px]]
 +
 
 +
To configure the settings of SonarQube Scanner follow the steps by using [https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner this link].
 +
These settings must be filled in the project settings in [http://openmbd.com/wiki/CI/Jenkins#Configure_a_job_in_Jenkins Jenkins] (see "Execute SonarQube Scanner").
  
  
  
 
== Configuration ==
 
== Configuration ==
 +
 +
To change the default port, under the header "WEB SERVER" in the file "sonar.properties" in the map of SonarQube, the # must be removed and now the "sonar.web.port" can be changed, for example to 5900.
 +
  
  
 
<i>Configuration Procedure</i>
 
<i>Configuration Procedure</i>

Revision as of 13:20, 31 October 2017


Back to Home


SonarQubeLogo.png

Introduction to SonarQube

Short explanation of what SonarQube is here and why we chose SonarQube...


Installation

The following steps must be followed to install SonarQube and SonarQube Scanner.

For SonarQube:

In Command Prompt go to the map where SonarQube is installed and start the service, for example:

C:\Program Files\SonarQube\sonarqube-5.6.6\bin\windows-x86-64>StartSonar.bat

If the service is up, SonarQube is installed properly.

Cmdsq.png

This can be checked by the following link: SonarQube.

On the picture below, on the left side of the screen it shows that the SonarQube server is successfully started.

Localhost9000.png


For SonarQube Scanner:

The following link can be used to install SonarQube Scanner: SonarQube Scanner.

To download SonarQube Scanner click on "Windows 64 bit" and the download will start after clicking on "Ok".

SonarQubeScanner.png

To configure the settings of SonarQube Scanner follow the steps by using this link. These settings must be filled in the project settings in Jenkins (see "Execute SonarQube Scanner").


Configuration

To change the default port, under the header "WEB SERVER" in the file "sonar.properties" in the map of SonarQube, the # must be removed and now the "sonar.web.port" can be changed, for example to 5900.


Configuration Procedure