Skip to content

Add option to truncate or limit test failure output (replacement for keepLongStdio) #767

@morlajb

Description

@morlajb

What feature do you want to see added?

Hi team,

We previously used the deprecated keepLongStdio option to reduce the amount of test output (especially stack traces) stored in Jenkins for failed tests.

In our pipelines, we already archive the full Maven build log as a compressed artifact, so we don’t need Jenkins to retain the full stdout/stderr or very large failure messages. However, with thousands of tests, the current behavior still loads and stores the entire failure body in memory and build metadata, which significantly increases the job size and memory footprint.

Could you please consider adding a configurable option (for example, maxFailureLogSize or similar) that would allow truncating or limiting the stored failure output for failed tests? This would help large-scale test suites keep Jenkins responsive while still retaining essential error context.

Thanks for maintaining this plugin and for any guidance or plans around this!

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions