[JIRA] (JENKINS-15746) Cannot run SSH commands on SSH servers that use Windows shell

488 views
Skip to first unread message

gpjerrymaloney@gmail.com (JIRA)

unread,
Nov 6, 2012, 12:58:41 PM11/6/12
to jenkinsc...@googlegroups.com
Issue Type: Bug Bug
Affects Versions: current
Assignee: Jerry Maloney
Components: ssh-slaves
Created: 06/Nov/12 5:57 PM
Description:

The cmd that is run on the remote host uses single-quotes to wrap the directory to cd to immediately before running java -jar slave.jar. This breaks when the remote host shells out to the Windows command-line shell, as is the case for the SSH server I am using (Bitvise ssh server).

Project: Jenkins
Priority: Major Major
Reporter: Jerry Maloney
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

gpjerrymaloney@gmail.com (JIRA)

unread,
Nov 6, 2012, 2:25:41 PM11/6/12
to jenkinsc...@googlegroups.com

gpjerrymaloney@gmail.com (JIRA)

unread,
Nov 6, 2012, 2:54:41 PM11/6/12
to jenkinsc...@googlegroups.com
Jerry Maloney started work on Bug JENKINS-15746
Change By: Jerry Maloney (06/Nov/12 7:54 PM)
Status: Open In Progress

gpjerrymaloney@gmail.com (JIRA)

unread,
May 9, 2013, 3:44:57 PM5/9/13
to jenkinsc...@googlegroups.com

Is this pull request scheduled for inclusion in a release of the plugin?

Thanks,
– Jerry

mcmenace@gmx.net (JIRA)

unread,
Jul 19, 2013, 10:17:45 AM7/19/13
to jenkinsc...@googlegroups.com

Same problem here!

Is there a workaround or a fix in an upcoming version?

Currently running jenkins 1.523 with ssh-slave-plugin 0.27 in a bitnami virtualbox VM. Connection to linux 32/64bit and MacOS via ssh works perfect. Connections to WinXp and Win8 running Bitvise SSH server yield:

[07/19/13 14:14:29] [SSH] Opening SSH connection to itchy.imp.fu-berlin.de:22.

[07/19/13 14:14:29] [SSH] Authentication successful.
SSH connection reports a garbage before a command execution.
Check your .bashrc, .profile, and so on to make sure it is quiet.
The received junk text is as follows:
'true' is not recognized as an internal or external command,
operable program or batch file.

hudson.AbortException
at hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:613)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:490)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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:724)
[07/19/13 14:14:29] [SSH] Connection closed.

Has some any ideas how to debug? Command execution via ssh on the command line (bash) from a linux maschine to WinXp and Win8 boxes work without any garbage returned.

Cheers
McMenace

mcmenace@gmx.net (JIRA)

unread,
Jul 19, 2013, 10:19:45 AM7/19/13
to jenkinsc...@googlegroups.com
 
mcmenace mcmenace edited a comment on Bug JENKINS-15746

Same problem here!

Is there a workaround or a fix in an upcoming version?

Currently running jenkins 1.523 with ssh-slave-plugin 0.27 in a bitnami virtualbox VM. Connection to linux 32/64bit and MacOS via ssh works perfect. Connections to WinXp and Win8 running Bitvise SSH server yield:

[07/19/13 14:14:29] [SSH] Opening SSH connection to itchy.imp.fu-berlin.de:22.

[07/19/13 14:14:29] [SSH] Authentication successful.
SSH connection reports a garbage before a command execution.
Check your .bashrc, .profile, and so on to make sure it is quiet.
The received junk text is as follows:
'true' is not recognized as an internal or external command,
operable program or batch file.

hudson.AbortException
at hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:613)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:490)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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:724)
[07/19/13 14:14:29] [SSH] Connection closed.

Has some any ideas how to debug? Command execution via ssh on the command line (bash) from a linux maschine to WinXp and Win8 boxes work without any garbage returned.

Cheers
McMenace

ps: If I can help or anyone needs more information please let me know.

gpjerrymaloney@gmail.com (JIRA)

unread,
Jul 22, 2013, 9:33:47 AM7/22/13
to jenkinsc...@googlegroups.com

mcmenace, I am not sure what the process is here. My pull request was accepted, but somehow it seems like it's not in the finished product. I guess I'll go knock on their door again.

In the meantime, if you pull the source code for the plugin and make the same change I did, you can compile your own plugin and use that. That's what I've been doing.

– Jerry

gpjerrymaloney@gmail.com (JIRA)

unread,
Aug 5, 2013, 1:55:47 PM8/5/13
to jenkinsc...@googlegroups.com

The original pull request was somehow left out, even after being approved. Since the fix was 2 characters, I found it easier to delete the old fork and create a new one, then create a new pull request:
https://github.com/jenkinsci/ssh-slaves-plugin/pull/12

Reply all
Reply to author
Forward
0 new messages