Analyzing Jenkins static code for sbt project

I have an sbt project with findbugs4sbt, cpd4sbt plugins. This project is built by Jenkins using static code analysis modules. I am running the "sbt findbugs" and "sbt cpd" steps after compilation and I can see the target / findbugs / report.xml and target / cpd / cpd.xml files in the Workspace, but I cannot see any reports in the project. How do I configure Jenkins to display search results and cpd plugins?

+3


source to share


1 answer


You need to customize the name of the XML report file. By default Jenkins looks for " findbugs.xml " or " findbugsXml.xml " files .

In your Jenkins configuration, find the Publish FindBugs section .



enter image description here

0


source







All Articles