We have Jenkins running in Kubernetes with the Kubernetes plugin, and have 
been experiencing some exceptions when building job which includes shell script 
.


The following is exceptions infomation. And every shell command causes a 
exception, for example, my job execute 10 times shell command and throw 10 
exceptions 
infomation as follow.

Jun 06, 2017 9:45:33 PM 
io.fabric8.kubernetes.client.utils.InputStreamPumper run
SEVERE: Error while pumping stream.
java.io.IOException: Pipe broken
at java.io.PipedInputStream.read(PipedInputStream.java:321)
at java.io.PipedInputStream.read(PipedInputStream.java:377)
at java.io.InputStream.read(InputStream.java:101)
at 
io.fabric8.kubernetes.client.utils.InputStreamPumper.run(InputStreamPumper.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

We're using the following pipeline:

podTemplate(label: 'test_pipeline_execute_time_1', containers: 
[containerTemplate(name: 'ubuntu', image: 'ubuntu', ttyEnabled: 
true,command: 'cat')]) 
{
  node('test_pipeline_execute_time_1'){
 container('ubuntu') { 
      for(int i=0;i<10;i++)
{
     sh 'ls '
}
}}}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e12fd96e-dd85-43e6-8911-a18bb87c8074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to