Findbugs found bugs but FindBug Jenkin plugin doesn't regconize at all

232 views
Skip to first unread message

Tùng Trần

unread,
Sep 10, 2015, 8:53:56 AM9/10/15
to Jenkins Users
Hi friends,
I have a maven project on Jenkins 1.628. I use findbugs to "findbugs". Althought there is a bug reported after analyzed
"This call to a generic collection method contains an argument
     with an incompatible class from that of the collection's parameter
    (i.e., the type of the argument is neither a supertype nor a subtype
        of the corresponding generic type argument)."

But the  FindBug Jenkin plugin didn't count it.
This is my pom setting
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>${findbugs-maven.version}</version>
                <configuration>
                    <effort>Max</effort>
                    <failOnError>false</failOnError>
                    <!-- Reports all bugs (other values are medium and max) -->
                    <threshold>Low</threshold>
                    <!-- Produces XML report -->
                    <xmlOutput>true</xmlOutput>
                    <findbugsXmlOutput>true</findbugsXmlOutput>
                    <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
                </configuration>
                <executions>
                    <!--
                        Ensures that FindBugs inspects source code when project is compiled.
                    -->
                    <execution>
                        <id>analyze-compile</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>findbugs</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


And the log on Jenkins is:

-- findbugs-maven-plugin:3.0.2:findbugs (analyze-compile) @ apache-cxf-sample ---
[INFO] Fork Value is true
     [java] Warnings generated: 1
[INFO] Done FindBugs Analysis....
[FINDBUGS] Finding all files that match the pattern findbugsXml.xml
[FINDBUGS] Parsing 1 file in /root/.jenkins/jobs/apache-cxf-sample/workspace/apache-cxf/apache-cxf-sample/target/findbugs
[FINDBUGS] Successfully parsed file /root/.jenkins/jobs/apache-cxf-sample/workspace/apache-cxf/apache-cxf-sample/target/findbugs/findbugsXml.xml of module apache-cxf-sample Maven Webapp with 0 unique warnings and 0 duplicates.
[FINDBUGS] Computing warning deltas based on reference build #14

I've read the topic https://groups.google.com/forum/#!searchin/jenkinsci-users/findbugs/jenkinsci-users/DU1dAGuT5NQ/XJeJwP7_1N8J But it doesn't work.

Please help me this

Ullrich Hafner

unread,
Sep 10, 2015, 7:03:33 PM9/10/15
to jenkins...@googlegroups.com
Is the bug referenced in the result file /root/.jenkins/jobs/apache-cxf-sample/workspace/apache-cxf/apache-cxf-sample/target/findbugs/findbugsXml.xml?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6e561439-98a8-4eab-a340-9d64ceb7c50f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Tùng Trần

unread,
Sep 11, 2015, 1:08:06 AM9/11/15
to Jenkins Users
"Is the bug referenced in the result file /root/.jenkins/jobs/apache-
cxf-sample/workspace/apache-cxf/apache-cxf-sample/target/findbugs/findbugsXml.xml?"
=> Yes Ultron, :D

Ullrich Hafner

unread,
Sep 12, 2015, 6:51:38 PM9/12/15
to jenkins...@googlegroups.com
Then please create a bug report and attach the file.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
signature.asc
Reply all
Reply to author
Forward
0 new messages