Pipeline Maven Integration fails to publish spotbugs reports

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Using plugin version 3.10, I'm utilizing withMaven in a pipeline as follows:

      stage('Build') {
          withMaven {
              def args
              if (config.mavenArgs) {
                  // use config.mavenArgs, if supplied
                  args = config.mavenArgs
              } else {
                  // default args
                  args = 'clean install'
              }
              sh "./mvnw ${args}"
          }
          // withMaven will utilize maven wrapper and discover the generated Maven artifacts, JUnit Surefire & FailSafe reports and FindBugs reports
      }
      
      

      I have version 9.0.1 of Warnings Next Generation Plugin installed.

      Unfortunately, during the build, I get these messages in console output:

      [withMaven] Jenkins FindBugs Plugin not found, don't display com.github.spotbugs:spotbugs-maven-plugin:spotbugs results in pipeline screen.

      There are plenty of spotbugs XML files in the project, e.g.:

      $ find . -name '*spot*' | grep common
      ./common/web/target/spotbugsXml.xml
      ./common/web/target/site/spotbugs.xml
      ./common/utils/target/spotbugsXml.xml
      ./common/utils/target/site/spotbugs.xml
      ./common/testutils/target/spotbugsXml.xml
      ./common/testutils/target/site/spotbugs.xml
      ./acorn/common/target/spotbugsXml.xml
      ./acorn/common/target/site/spotbugs.xml
      ./common-rest/target/spotbugsXml.xml
      ./common-rest/target/site/spotbugs.xml

      Jenkins version is 2.289. Any help or advice is appreciated.

            Assignee:
            Unassigned
            Reporter:
            Corporate
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: