Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65422

Pipeline Maven Integration fails to publish spotbugs reports

      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.

          [JENKINS-65422] Pipeline Maven Integration fails to publish spotbugs reports

          Corporate created issue -
          Corporate made changes -
          Description Original: Using plugin version 3.10, I'm utilizing {{withMaven}} in a pipeline as follows:
          {code:java}
          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
          }

          {code}
          I have version 9.0.1 of Warnings Next Generation Plugin installed.

          Unfortunately, during the build, I get these messages in console output:
          {noformat}
          [withMaven] Jenkins FindBugs Plugin not found, don't display com.github.spotbugs:spotbugs-maven-plugin:spotbugs results in pipeline screen.{noformat}
          There are plenty of spotbugs XML files in the project, e.g.:
          {noformat}
          $ 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{noformat}
          Any help or advice is appreciated.
          New: Using plugin version 3.10, I'm utilizing {{withMaven}} in a pipeline as follows:
          {code:java}
          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
          }

          {code}
          I have version 9.0.1 of Warnings Next Generation Plugin installed.

          Unfortunately, during the build, I get these messages in console output:
          {noformat}
          [withMaven] Jenkins FindBugs Plugin not found, don't display com.github.spotbugs:spotbugs-maven-plugin:spotbugs results in pipeline screen.{noformat}
          There are plenty of spotbugs XML files in the project, e.g.:
          {noformat}
          $ 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{noformat}
          Jenkins version is 2.289. Any help or advice is appreciated.
          Benoit made changes -
          Link New: This issue duplicates JENKINS-57427 [ JENKINS-57427 ]
          Benoit made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            corporate_gadfly Corporate
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: