As part of setting up continuous integration and automated builds and source analysis, the next step is to integrate in the source analysis parts.
To this end, I installed the following plugins:
After restarting Hudson, there are a few additional configuration bits to complete.
I added an additional build step and set the goal as
checkstyle:checkstyle findbugs:findbugs pmd:pmd
I then enabled the four plugins, saved, ran a build and et voila… Just like magic
Fair Warning: This is more notes for me to remember and document how to do these things rather than particularly detailed instructions. Therefore, it might be missing sections and will assume a reasonable knowledge of hudson/jenkins and not to mention the benefits of continuous integration and builds.
Installing hudson / jenkins is easy enough. I deployed as part of a pre-existing tomcat6 installation so was as simple as popping the war file into the webapps folder. Tomcat automatically started it up without issues.
I chose to have hudson use /home/hudson as its home directory. Since I am running an ubuntu system, I added a line into /etc/defaults/tomcat6. There are various other ways of doing this but it was a quick fix for me.
You of course need to make sure the directory exists. I also popped in a .m2 folder from my home directory to save it from downloading all the various jar files and included a settings.xml file with appropriate configurations.
Continue reading →