Executing SonarQube in a CI process
So far in this chapter, we have looked at how to install SonarQube and how developers use SonarLint on their local machines.
Now, we will look at how to perform code analysis during CI to ensure that each time a code commit is made, we can check the application code that's provided by all team members.
In order to integrate SonarQube into a CI process, we will need to perform the following actions:
- Configure SonarQube by creating a new project.
- Create and configure a CI build in Azure Pipelines.
Let's start by examining the creation of a new project in SonarQube.
Configuring SonarQube
SonarQube's configuration consists of creating a new project and retrieving an identification token. To create a new project, follow these steps:
- Click on the Create new project link on the dashboard.
- Then, enter a unique
demobook
key and a name for this project asdemo-book
in the form. - To validate this...