jenkinsci / jenkinsci/junit-sql-storage-plugin

[JENKINS-64395] NullPointerException in JUnit build step

Open
#505 3 comments 0 reactions 0 assignees View on GitHub
component:junit-sql-storage-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
7
Forks
13
Avg merge
11m
Merged PRs (30d)
4

Description

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']]

---
Originally reported by jrogers, imported from: NullPointerException in JUnit build step


  • assignee: timja
  • status: In Review
  • priority: Blocker
  • component(s): junit-sql-storage-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

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']]

environment

```
Jenkins 2.263.1 from official Docker image

OpenJDK Runtime Environment 1.8.0_242-b08

PostgreSQL 9.5

Relevant Plugins:

junit 1.46

test-stability 2.3

junit-attachments 1.6

junit-sql-storage 0.2

database-postgresql 1.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.