Sonar and Hudson
Due to my current tasks at Google Summer of Code 2010 I’ve been setting up a small CI system for my personal use. Yes, it is an overkill, but I wanted to test it and, truth be told, the statistics provided by tools like Sonar and Hudson are priceless, they show you many potential errors you may have in the code, coverage you are missing, etc.
I asked my friend Google for a guide on how to set them up together and it came up with this one. Easy five steps to set them up (check the link for more detail):
- Step 1: Download, install and start the Sonar Server.
- Step 2: Install and Configure Sonar plugin on Hudson.
- Step 3: Configure your Hudson Job
- Step 4: Build your project
- Step 5: Browse to Sonar Dashboard (default user is admin/admin)
And you have your CI environment ready to go. Easy. Simple. Powerful. And useful!
I recommend you to use the following Sonar plugins:
- Eclipse Plugin
- Tag List Plugin
- Total Quality Plugin
- SCM Activity Plugin
- Sonar PDF Plugin
- Motion Chart Plugin
- Build Breaker
With them you will get some extra data in your reports, you will be able to access them from your IDE (more useful for developers) and the builds will generate a handy pdf report for your project manager. Many benefits for a few customizations. You don’t even need to change the default settings for any standard project.