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

NullPointerException with TAP plugin version 2.4.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • tap-plugin
    • None
    • Debian bullseye
      Jenkins 2.426.2
      openjdk-11-jdk-headless 11.0.21+9-1~deb11u1

      The latest version of the TAP plugin fails hard for me:

      15:49:08 java.lang.NullPointerException
      15:49:08 	at org.tap4j.plugin.TapPublisher.isPerformPublisher(TapPublisher.java:395)
      15:49:08 	at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:273)
      15:49:08 	at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:268)
      15:49:08 	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      15:49:08 	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      15:49:08 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      15:49:08 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
      15:49:08 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
      15:49:08 	at hudson.model.Build$BuildExecution.post2(Build.java:179)
      15:49:08 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
      15:49:08 	at hudson.model.Run.execute(Run.java:1918)
      15:49:08 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      15:49:08 	at hudson.model.ResourceController.execute(ResourceController.java:101)
      15:49:08 	at hudson.model.Executor.run(Executor.java:442)
      15:49:08 Build step 'Publish TAP Results' marked build as failure

      Example of the TAP plugin configuration for such a failing Jenkins job:

          <org.tap4j.plugin.TapPublisher plugin="tap@2.4.0">
            <testResults>reports/**</testResults>
            <failIfNoResults>false</failIfNoResults>
            <failedTestsMarkBuildAsFailure>false</failedTestsMarkBuildAsFailure>
            <outputTapToConsole>true</outputTapToConsole>
            <enableSubtests>true</enableSubtests>
            <discardOldReports>false</discardOldReports>
            <todoIsFailure>true</todoIsFailure>
            <includeCommentDiagnostics>false</includeCommentDiagnostics>
            <validateNumberOfTests>false</validateNumberOfTests>
            <planRequired>true</planRequired>
            <verbose>true</verbose>
            <showOnlyFailures>false</showOnlyFailures>
          </org.tap4j.plugin.TapPublisher>
      

      Downgrading the TAP plugin to version 2.3 fixes this NullPointerException issue for me.

      Let me know if you need any further information from my side or if should try/test anything specific.

      BTW: https://plugins.jenkins.io/tap/ doesn't list the latest v2.4.0 in the release notes.

            kinow Bruno P. Kinoshita
            mika Michael Prokop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: