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?

          [JENKINS-75060] Warnings next generation - source directory

          Ulli Hafner added a comment -

          Please use the chat to ask questions.

          Ulli Hafner added a comment - Please use the chat to ask questions.

            drulli Ulli Hafner
            yamit_shkalim yamit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: