-
Bug
-
Resolution: Incomplete
-
Blocker
-
None
-
Jenkins Master: Ubuntu
Jenkins Slave: Windows 10
Dear All,
I have got struck with an issue, I am seeing very 1st time with Jenkins.
1. I am using Jenkins Master as Ubuntu VM and Jenkins slave on Windows 10.
2. I have openssh running on window slave.
3. I am not able to bring Jenkins window slave online. It can authenticate, but running command
cd "D:\jenkins" && java -Xms2048m -Xmx4096m -jar slave.jar"
fails
[05/15/18 19:23:50] [SSH] Copied 745,674 bytes. Expanded the channel window size to 4MB [05/15/18 19:23:50] [SSH] Starting slave process: cd "D:\jenkins" && java -Xms2048m -Xmx4096m -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>Error: Unable to access jarfile slave.jar Slave JVM has terminated. Exit code=1 [05/15/18 19:23:50] Launch failed - cleaning up connection [05/15/18 19:23:50] [SSH] Connection closed.
4. I can reproduce the same by manually run following command from Jenkins master
Command
ssh user@jenkinsslave "cd "D:\jenkins" && java -Xms2048m -Xmx4096m -jar slave.jar"
Fails
But If I run (with full path of slave.jar) it works.
ssh user@jenkinsslave "cd "D:\jenkins" && java -Xms2048m -Xmx4096m -jar D:\jenkins\slave.jar"
Can I please know what can I do to fix it?