我正在通过Ant任务运行spotbugs,但我无法将结果发布给jenkins。我得到下面的错误
[FindBugs] No valid reference build found that meets the criteria (NO_JOB_FAILURE - SUCCESSFUL_QUALITY_GATE)
[FindBugs] All reported issues will be considered outstanding这是我正在使用的jenkins脚本
stage('Publish Spotbugs')
{
def findbugs = scanForIssues tool: [$class: 'FindBugs'], pattern: '**/findbugsXml.xml'
publishIssues issues:[findbugs]
}发布于 2019-08-24 22:31:48
你写道你正在使用Spotbugs。在您的管道中,您正在使用Findbugs发布程序。Spotbugs是一个Findbugs分支。如果你真的在使用Spotbugs,我建议你改用Spotbugs发布器。
stage('Publish Spotbugs')
{
def spotbugs = scanForIssues tool: spotBugs(pattern: '**/target/findbugsXml.xml')
publishIssues issues: [spotbugs]
}report-XML文件名取决于您的配置。也可以是spotbugsXml.xml。在运行ant任务后,您是否验证了目标文件夹?
有关警告下一代插件的管道配置的更多信息,请参阅documentation on github或jenkins user documtation。
https://stackoverflow.com/questions/57589257
复制相似问题