简体   繁体   English

如何使用管道插件在jenkins中发布findbugs报告?

[英]How to publish findbugs report in jenkins using pipeline plugin?

I have gradle project and I add findbugs step. 我有gradle项目,并添加了findbugs步骤。 XML file with report is generated, but I have no idea how to display results in jenkins using pipeline plugin. 带有报告的XML文件已生成,但是我不知道如何使用管道插件在jenkins中显示结果。

I installed findbugs plugin, but I don't find instructions how to use it in pipeline script. 我安装了findbugs插件,但是没有找到如何在管道脚本中使用它的说明。

How to use findbugs plugin in pipeline or where is documentation how to use findbugs in pipeline? 如何在管道中使用findbugs插件,或者在文档中如何在管道中使用findbugs?

Based on official FindBugs Plugin page recent release added support for Pipeline job : 基于官方的FindBugs插件页面,最新版本增加了对Pipeline作业的支持:

Release 4.62 版本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: 您应该能够在Snippet Generator中找到FindBugs step ,即:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM