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

java.lang.NullPointerException on failed tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • claim-plugin
    • None

      Upon finishing a declarative pipeline and recording (failed) junit-test results I get:

      15:43:33 Recording test results 15:43:34 null Error when executing always post condition: java.lang.NullPointerException at hudson.plugins.claim.AbstractClaimBuildAction.<init>(AbstractClaimBuildAction.java:39) at hudson.plugins.claim.ClaimTestAction.<init>(ClaimTestAction.java:18) at hudson.plugins.claim.ClaimTestDataPublisher$Data.getTestAction(ClaimTestDataPublisher.java:117) at hudson.tasks.junit.TestResultAction.getActions(TestResultAction.java:253) at hudson.tasks.test.TestObject.getTestActions(TestObject.java:254) at hudson.tasks.test.TestObject.getTestAction(TestObject.java:267) at hudson.plugins.claim.ClaimTestDataPublisher.contributeTestData(ClaimTestDataPublisher.java:41) at hudson.plugins.claim.ClaimTestDataPublisher.contributeTestData(ClaimTestDataPublisher.java:22) at hudson.tasks.junit.JUnitResultArchiver.parseAndSummarize(JUnitResultArchiver.java:291) at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:63) at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:29) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
      

      I reported initially at https://github.com/jenkinsci/junit-plugin/issues/434 was directed here...

            greybird Arnaud TAMAILLON
            maial Alexander Mai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: