Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
  • Loading branch information
lne3 and jglick authored Jan 5, 2024
1 parent 6daee4a commit 7ffdb69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private List<String> scriptLauncherCmd(ShellController c, FilePath ws, @CheckFor
private ShellController(FilePath ws, boolean zOsFlag, @NonNull String cookieValue, String jenkinsResultTxtEncoding) throws IOException, InterruptedException {
super(ws, cookieValue);
this.isZos = zOsFlag;
this.jenkinsResultTxtEncoding = jenkinsResultTxtEncoding == null ? getCharset() : jenkinsResultTxtEncoding;
this.jenkinsResultTxtEncoding = jenkinsResultTxtEncoding;
}

public FilePath getScriptFile(FilePath ws) throws IOException, InterruptedException {
Expand All @@ -300,7 +300,7 @@ private FilePath pidFile(FilePath ws) throws IOException, InterruptedException {
if(isZos) {
// We need to transcode status file from EBCDIC only on z/OS platform
FilePath statusFile = getResultFile(workspace);
status = statusFile.act(new StatusCheckWithEncoding(jenkinsResultTxtEncoding));
status = statusFile.act(new StatusCheckWithEncoding(jenkinsResultTxtEncoding != null ? jenkinsResultTxtEncoding : getCharset()));
}
else {
status = super.exitStatus(workspace, listener);
Expand Down

0 comments on commit 7ffdb69

Please sign in to comment.