Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32489

"Prefix/Suffix Start Slave Command" does not add a space before/after the cmd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ssh-slaves-plugin
    • None

      Add the suffix below into a ssh-slave.

       2> >(tee -a slave-stderr.log 1>&2)
      

      Then, the following happens:

      [01/18/16 08:32:37] [SSH] Copied 478,051 bytes.
      Expanded the channel window size to 4MB
      [01/18/16 08:32:37] [SSH] Starting slave process: cd "/home/vagrant" && java  -jar slave.jar2> >(tee -a slave-stderr.log 1>&2)
      Unable to access jarfile slave.jar2
      hudson.util.IOException2: Slave JVM has terminated. Exit code=1
      	at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953)
      	at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:133)
      	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
      	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.EOFException: unexpected stream termination
      	at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331)
      	at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:280)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:371)
      	at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:945)
      	... 7 more
      [01/18/16 08:32:37] Launch failed - cleaning up connection
      

      The same happens with the prefix.

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: