jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-70660] Issue reading ASCII jenkins-result.txt file on z/OS machine

Open
#498 1 comment 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

I'm hitting an issue where the `jenkins-result.txt` file is getting tagged as ASCII on a z/OS machine. This is causing the `StatusCheckWithEncoding(getCharset())`  check at https://github.com/jenkinsci/durable-task-plugin/blob/0d250a6142908f591bda91d8658ab1b102611ce3/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L298 to throw an Exception.

 

I'm able to patch the plugin by using a try/catch and trying to read the file as ASCII in the catch block. This is not exactly a blocker since I can patch my own fix but it would be nice to have this working in the base plugin.

 

Should I open a PR for the fix?

---
Originally reported by ginader94, imported from: Issue reading ASCII jenkins-result.txt file on z/OS machine


  • status: Open
  • priority: Minor
  • component(s): durable-task-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

Raw content of original issue

I'm hitting an issue where the `jenkins-result.txt` file is getting tagged as ASCII on a z/OS machine. This is causing the `StatusCheckWithEncoding(getCharset())`  check at https://github.com/jenkinsci/durable-task-plugin/blob/0d250a6142908f591bda91d8658ab1b102611ce3/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L298 to throw an Exception.

 

I'm able to patch the plugin by using a try/catch and trying to read the file as ASCII in the catch block. This is not exactly a blocker since I can patch my own fix but it would be nice to have this working in the base plugin.

 

Should I open a PR for the fix?

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.