jenkins the definitive guide
Figure 9.1. It is easy to configure Checkstyle rules in Eclipse Configuring Checkstyle in your build is usually straightforward. ...
In Maven 2, you could add something like the following to the section: <reporting> <plugins> <plugin> <gro ...
Note that in the last example, we used a Checkstyle ruleset that we have uploaded to a Sonar server (defined by the ${sonar.url} ...
Figure 9.2. Configuring PMD rules in Eclipse PMD comes with an Ant task that you can use to generate the PMD and CPD reports. Fi ...
And, to generate the CPD XML report, you could do something like this: <target name="cpd"> <cpd minimumTokenCount="100" ...
<artifactId>maven-pmd-plugin</artifactId> <version>2.5</version> <configuration> <!-- PMD optio ...
fileset(dir: "src/main/java") { include(name: '**/*.java') } fileset(dir: "src/test/java") { include(name: '**/*.java') } } cpd( ...
</classpath> </taskdef> Then, to run FindBugs, you could set up a “findbugs” target as shown in the following exampl ...
</plugin> </reportPlugins> </configuration> </plugin> </plugins> </build> </project> I ...
This will use the CodeNarc configuration file in config/codenarc/codenarc.xml by default. You can override this with the codeNar ...
Once you have set this up, you can configure the violations plugin to generate reports and, if required, trigger notifications, ...
Figure 9.5. Violations over time You can also click on this graph to drill down into a particular build. Here, you can see the n ...
weather icon is normally related to the number of failing builds in the previous five builds, but Jenkins can also take into acc ...
Figure 9.7. Configuring the violations plugin for a Freestyle project 9.4.2. Working with Maven Build Jobs Maven build jobs in J ...
The Violations plugin works well with multimodule Maven projects, but at the time of writing it needs a little tweaking to obtai ...
Figure 9.10. Activating the Violations plugin for an individual module Once you have done this, when you click on the violations ...
Figure 9.11. Installing the Checkstyle and Static Analysis Utilities plugins Once you have installed these plugins, you can set ...
Figure 9.12. Configuring the Checkstyle plugin Now, when the build runs, Jenkins will now generate a trend graph and detailed re ...
As we mentioned earlier, the same approach also works with the PMD plugin and the FindBugs plugin. These plugins are a great way ...
Figure 9.15. You can click on any point in the graph to investigate further At the time of writing, this plugin requires Clover, ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf