It is recommended to run project analyses on a regular basis to get the best from the SonarQube TM platform. Continuous Integration servers are the perfect tools to do so.
Install and configure the SonarQube TM Jenkins plugin.
Install and configure the SonarQube TM Hudson plugin.
Apache Continuum 1.2
The difficulty in Continuum is to be able to synchronize an
install goal with the
sonar:sonar goal because it is necessary that an
install goal is run before the SonarQube TM collect starts (See Analyzing Source Code for more information).
Since Continuum does not provide mechanism to trigger a build from a build, there are two options: either running
install goals regularly (for example every hour), or trigger a complete command such as:
In case you decide to run
install commands regularly, here is the setup you can do for the SonarQube TM build:
- Create a build definition with the goal:
- Once created, run this build definition on the root pom of the projects you want to SonarQubeTM.
- For multi-module projects, make sure to check For multi modules project, load only root as recursive build when you create the project through the Continuum Maven 2 wizard