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

NullPointerException in JUnit build step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None

      I configured Jenkins to store test results in the global Postgres database as described in the documentation. I ran a pipeline job which had worked. The "junit" step stored test results in the database, then failed because it threw a NullPointerException. I am not able to find any specifics about what caused the exception.

      Failed step log:

      03:01:26 null
      03:01:26 Saved 12587 test cases into database.

      Snippet from pipeline:

      def junit_pattern = '*_xunit.xml'
      junit testResults: junit_pattern, testDataPublishers: [[$class: 'StabilityTestDataPublisher'], [$class: 'AttachmentPublisher']]

            timja Tim Jacomb
            jrogers Jonathan Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: