All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.slaves.CommandLauncher.help-command.html Maven / Gradle / Ivy

The newest version!
Command to be used to launch a slave agent program, which controls the slave computer and communicates with the master. Hudson assumes that the executed program launches the slave.jar program on the correct slave machine.

A copy of slave.jar can be downloaded from here.

In a simple case, this could be something like "ssh hostname java -jar ~/bin/slave.jar". However, it is often a good idea to write a small shell script, like the following, on a slave so that you can control the location of Java and/or slave.jar, as well as set up any environment variables specific to this slave node, such as PATH.

#!/bin/sh
exec java -jar ~/bin/slave.jar

You can use any command to run a process on the slave machine, such as RSH, as long as stdin/stdout of this process will be connected to "java -jar ~/bin/slave.jar" eventually.

In a larger deployment, It is also worth considering to load slave.jar from a NFS-mounted common location, so that you don't have to update this file every time you update Hudson.

Setting this to "ssh -v hostname" may be useful for debugging connectivity issue.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy