[JIRA] [ssh-slaves-plugin] (JENKINS-32489) "Prefix/Suffix Start Slave Command" does not add a space before/after the cmd

17 views
Skip to first unread message

fbelzunc@gmail.com (JIRA)

unread,
Jan 18, 2016, 2:34:02 AM1/18/16
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos created an issue
 
Jenkins / Bug JENKINS-32489
"Prefix/Suffix Start Slave Command" does not add a space before/after the cmd
Issue Type: Bug Bug
Assignee: Félix Belzunce Arcos
Components: ssh-slaves-plugin
Created: 18/Jan/16 7:33 AM
Priority: Minor Minor
Reporter: Félix Belzunce Arcos

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

fbelzunc@gmail.com (JIRA)

unread,
Jan 18, 2016, 3:11:01 AM1/18/16
to jenkinsc...@googlegroups.com

stephenconnolly@java.net (JIRA)

unread,
Apr 4, 2016, 6:50:01 AM4/4/16
to jenkinsc...@googlegroups.com
stephenconnolly resolved as Not A Defect
 

This behaviour is by design. To use this feature correctly it is necessary that the prefix and suffix are applied verbatim

Change By: stephenconnolly
Status: Open Resolved
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages