jenkins the definitive guide

(Jeff_L) #1

Figure 9.10. Activating the Violations plugin for an individual module


Once you have done this, when you click on the violations aggregate graph on the project build job
home page, Jenkins will list the individual violations graphs for each module.


9.5. Using the Checkstyle, PMD, and FindBugs Reports


You can also report individually on results from Checkstyle, PMD, and FindBugs. In addition to the
Violations plugin, there are also Jenkins plugins that produce trend graphs and detailed reports for each
of these tools individually. We will look at how to do this for Checkstyle, but the same approach also
applies for PMD and FindBugs. You can even use the Analysis Collector Plugin to display the combined
results in a graph similar to the one produced by the Violations plugin.


You can install these plugins through the Plugin Manager in the usual way. The plugins in question are
called, unsurprisingly, Checkstyle plugin, PMD plugin, and FindBugs plugin. All of these plugins use
the Static Analysis Utilities plugin, which you need to install as well (see Figure 9.11, “Installing the
Checkstyle and Static Analysis Utilities plugins”).

Free download pdf