Sonar build breaker for travis

160 Views Asked by At

I'm working on a continous integration cloud enviroment, using travis ci for server and sonarqube.com for static analysis. I wondering if there is a plugin/configuration for break the build process when some sonar threshold is triggered (like the build braeker plugin for the sonar server version)

2

There are 2 best solutions below

0
On BEST ANSWER

Finally I used a maven plugin for cobertura analisys, the cobertura plugin, wich take the configuration from the pom file, and I included into CI pipeline configured in the travis configuration file (travis.yml). The script result was:

mvn clean cobertura:check sonar:sonar tomcat7:redeploy 

The sonar plataform was used only for static analysis but not for cobertura. Regards!

1
On

looks like the sonar qube community has a plugin: https://github.com/SonarQubeCommunity/sonar-build-breaker/