Findbugs: report all bugs but fail if high priority bugs

I want findbugs to fail the build only if there are high priority bugs, but want all bug instances to be listed in the xml report generated by fingBugs, there is reportLevel attribute in findBugs plugin, but if I set it to “high” and ignoreFailure to false it does fail the build on high priority bug but it does not report the medium and low priority bugs in xml report at all. I want the build to fail only on high priority bugs but should report all bugs in report xml.

properties listed for FindBugs plugins are as follows. classes

classpath

effort

excludeFilter

excludes

findbugsClasspath

ignoreFailures

includeFilter

includes

omitVisitors

pluginClasspath

reportLevel

reports

source

visitors