Skip to content

Commit 096e66f

Browse files
committed
Revert "[JENKINS-63847] Use line separator from agent OS instead of master OS"
This reverts commit 357847d.
1 parent 357847d commit 096e66f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
import hudson.AbortException;
4646
import io.fabric8.kubernetes.api.model.Container;
47-
import jenkins.security.MasterToSlaveCallable;
4847
import org.apache.commons.io.output.TeeOutputStream;
4948
import org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate;
5049
import org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave;
@@ -460,13 +459,7 @@ public void onClose(int i, String s) {
460459
}
461460
toggleStdout.disable();
462461
OutputStream stdin = watch.getInput();
463-
// Initialize a PrintStream with line separator from agent
464-
PrintStream in = pwd.getChannel().call(new MasterToSlaveCallable<PrintStream, UnsupportedEncodingException>() {
465-
@Override
466-
public PrintStream call() throws UnsupportedEncodingException {
467-
return new PrintStream(stdin, true, StandardCharsets.UTF_8.name());
468-
}
469-
});
462+
PrintStream in = new PrintStream(stdin, true, StandardCharsets.UTF_8.name());
470463
if (pwd != null) {
471464
// We need to get into the project workspace.
472465
// The workspace is not known in advance, so we have to execute a cd command.

0 commit comments

Comments
 (0)