Jenkins launch slave via execution of command on the master + The system cannot find the file specified -
trying start slave on remote machine master
(local machine) using jenkins
(launch slave via command line on master)
ssh 10.1.18.135 java -jar d:/jenkins/slave.jar
the slave.jar present in above path,but fails error:
[07/01/13 14:16:11] launching slave agent $ ssh 10.1.18.135 java -jar d:/jenkins/slave.jar system cannot find file specified error: unable launch slave agent test123 : system cannot find file specified java.io.ioexception: cannot run program "ssh": createprocess error=2, system cannot find file specified @ java.lang.processbuilder.start(unknown source) @ hudson.slaves.commandlauncher.launch(commandlauncher.java:115) @ hudson.slaves.slavecomputer$1.call(slavecomputer.java:230) @ java.util.concurrent.futuretask$sync.innerrun(unknown source) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) caused by: java.io.ioexception: createprocess error=2, system cannot find file specified @ java.lang.processimpl.create(native method) @ java.lang.processimpl.(unknown source) @ java.lang.processimpl.start(unknown source)
can on this?
"the system cannot find file specified" refers ssh, not slave.jar. ensure have windows ssh implementation installed , folder resides in present in path environment variable.
Comments
Post a Comment