4.1 Analysis with SonarQube using Jenkins

Pre-requisite is to configure SonarQube with Jenkins

Job Configuration

  1. Configure the project, and scroll down to the Build section.

  2. Add the _Execute the SonarQube Scanner _build step to your build.

  3. Configure the SonarQube analysis properties. You can either point to an existing sonar-project.properties file or set the analysis properties directly in the Analysis properties field.

Now build the job to get the tests analysed and run the tests instantly.

After the tests are run the code analysis result can be found in sonarQube dashboard.

This is the beginning for learning to analyse the code...

Last updated