jenkinsci / jenkinsci/workflow-support-plugin

[JENKINS-51091] Make test results available on currentBuild

Open
#399 3 comments 0 reactions 0 assignees View on GitHub
component:workflow-support-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
23
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Currently, as described here, the only way to get the archived test results in a Pipeline job is through the currentBuild.rawBuild object and pulling an AbstractTestResultAction out of it to read test results. This involved whitelisting several external methods.

This is a lot of work to try and say, generate a slack message saying "Build BUILD failed, X/Y tests failed". How hard would it be to define a property on the currentBuild Global Variable live this: currentBuild.testResult.failCount ?

---
Originally reported by ironsean, imported from: Make test results available on currentBuild


  • status: Open
  • priority: Minor
  • component(s): workflow-support-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 8
  • imported: 20260601-173816

Raw content of original issue

Currently, as described here, the only way to get the archived test results in a Pipeline job is through the currentBuild.rawBuild object and pulling an AbstractTestResultAction out of it to read test results. This involved whitelisting several external methods.

This is a lot of work to try and say, generate a slack message saying "Build BUILD failed, X/Y tests failed". How hard would it be to define a property on the currentBuild Global Variable live this: currentBuild.testResult.failCount ?

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.