File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 4444
4545import hudson .AbortException ;
4646import io .fabric8 .kubernetes .api .model .Container ;
47- import jenkins .security .MasterToSlaveCallable ;
4847import org .apache .commons .io .output .TeeOutputStream ;
4948import org .csanchez .jenkins .plugins .kubernetes .ContainerTemplate ;
5049import 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.
You can’t perform that action at this time.
0 commit comments