Showing posts with label Jenkins. Show all posts
Showing posts with label Jenkins. Show all posts

Sunday, October 11, 2015

FindBugs Jenkins Integration

Jenkins installation & integration with firebugs documentation available in the link. Download here Maven plugin for findbugs report generation.
<reporting>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <version>2.5.2</version>
            <configuration>
                <!--
                    Enables analysis which takes more memory but finds more bugs.
                    If you run out of memory, changes the value of the effort element
                    to 'low'.
                -->
                <effort>Max</effort>
                <!-- Reports all bugs (other values are medium and max) -->
                <threshold>Low</threshold>
                <!-- Produces XML report -->
                <xmlOutput>true</xmlOutput>
            </configuration>
        </plugin>
    </plugins>
</reporting>
Command to generate find bugs report : mvn clean compile site