Introduction¶
SonarQube is an open source tool used to perform static code analysis on projects. In the context of my application, it runs within my Portainer system and is used when committing a new change. Within the Jenkins pipeline, SonarScanner runs on and scans the changed code.
Execution¶
To set this up I added the SonarScanner plugin to my Jenkins pipeline.
Since it is a multi-module project, the scan configuration is pretty convoluted. It is momentarily scanning my microservices.
Result¶
Due to the setup of the project, all new code will be automatically scanned if the build succeeds from the initial commit.
According to the static code analysis, no critical security vulnerabilities have been found, however the critical and major bugs can be resolved easily with further iterations.