Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Continuous integration engines

It is recommended to run the data collect on a regular basis to get the best from the Sonar platform. Continuous Integration engines are the perfect tool to do so.

Continuum 1.2

  • Create a build definition with the goal :

For multi-module projects, make sure that the --non-recursive build definition argument is NOT set.

  • Once created, run this build definition on the root pom of the projects you want to sonar.
  • 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 

It is very important that an install command is run before the sonar collect starts.

Hudson

Start by installing and configuring the Sonar plugin for Hudson

For Maven projects

Create a new project



In the project configuration, under the Build section



In the post-build section



Save and you are done.

For non maven projects


Create a new project



In the post-build section



Save and you are done.

CruiseControl


In CruiseControl, use the | to run the install and the sonar in two different processes.

The command to be launched should look like :

  • No labels