| We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin. It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job: ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740] Here the DSL-Snipped:
recordIssues { tools { checkStyle
Unknown macro: { pattern('**/checkstyle-result.xml') reportEncoding('UTF-8') }
spotBugs
Unknown macro: { id('bugs') name('SpotBugs Warnungen') pattern('**/spotbugsXml.xml') reportEncoding('UTF-8') useRankAsPriority(true) }
pmdParser
Unknown macro: { pattern('**/pmd.xml') reportEncoding('UTF-8') }
cpd
Unknown macro: { highThreshold(50) normalThreshold(25) pattern('**/cpd.xml') reportEncoding('UTF-8') }
} }
What is the mistake? Regards, Sascha |