jenkinsci / jenkinsci/junit-sql-storage-plugin
[JENKINS-64395] NullPointerException in JUnit build step
- 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
timja
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
Assessment
This issue has not been assessed yet.