jenkinsci / jenkinsci/durable-task-plugin
[JENKINS-70660] Issue reading ASCII jenkins-result.txt file on z/OS machine
- 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
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
Assessment
This issue has not been assessed yet.