DEV Community

Discussion on: Using SonarCloud with Github Actions and Maven

Collapse
 
remast profile image
Jan Stamer

Breaking the build is not possible using the regular sonar maven plugin. Yet you can use the the sonar-break-maven-plugin for that purpose. For Jenkins there is an official way to break the build as described in Breaking the SonarQube Analysis with Jenkins Pipelines.

GitHub logo sgoertzen / sonar-break-maven-plugin

Fail your maven build if sonar detects issues with the code