krynio
krynio

Reputation: 2492

How to publish findbugs report in jenkins using pipeline plugin?

I have gradle project and I add findbugs step. XML file with report is generated, but I have no idea how to display results in jenkins using pipeline plugin.

I installed findbugs plugin, but I don't find instructions how to use it in pipeline script.

How to use findbugs plugin in pipeline or where is documentation how to use findbugs in pipeline?

Upvotes: 2

Views: 4810

Answers (1)

luka5z
luka5z

Reputation: 7805

Based on official FindBugs Plugin page recent release added support for Pipeline job :

Release 4.62

Added support for workflow plug-in (Thanks to Antonio Muñiz and Manuel Recena for their PRs)
Fixed links in detail page of trend reports (JENKINS-29900)

You should be able to find FindBugs step in Snippet Generator, ie:

step([$class: 'FindBugsPublisher ', ... ])

Upvotes: 4

Related Questions