-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: warnings-ng-plugin
I'm using Warnings plugin with spotbus tool in order to compare 2 versions results of my project.
I build the project with mvn, and the results saved in
*/target/spotbusxml.xml  (the * matches 5 folders)
Â
I want to compare the results with spotbugs results of old run of this job....
Copied its artifacts toÂ
results_of_33.10/*/target/spotbusxml.xml   (the * matches the same 5 folders)
Â
This is how I'm using the tool:
stage('Record SpotBugs Issues') {
recordIssues(
tool: spotBugs(pattern: "*/target/spotbugsXml.xml"),
sourceDirectories: [
[path: "results_of_33.10/foo/target/spotbugsXml.xml"],
[path: "results_of_33.10/tool/target/spotbugsXml.xml"],
[path: "results_of_33.10/lala/target/spotbugsXml.xml"],
[path: "results_of_33.10/chair/target/spotbugsXml.xml"],
[path: "results_of_33.10/ball/target/spotbugsXml.xml"]
],
qualityGates: [[threshold: 1, type: 'NEW', unstable: true]],
enabledForFailure: true
)
}
But in the console I see the source directories doesn't take effect....
This is the output:
14:05:00 [SpotBugs] Resolving file names for all issues in source directory 'results_of_33.10/foo/target/spotbugsXml.xml'14:05:00 [SpotBugs] -> resolved paths in source directory (0 found, 170 not found)
....
....
14:05:00 [SpotBugs] Created analysis result for 458 issues (found 0 new issues, fixed 0 issues)
Even though some issues was added to the current version....
Â
What can I do to resolve ?
Is there anything wrong in what I did?