https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/RemoteLauncher.java
Is probably the one you want. On Fri, Nov 7, 2014 at 11:46 AM, munsingh <[email protected]> wrote: > Hello Jenkins Developers, > > I need to create Jenkins Linux Slaves via script. I have been able to > create Windows Slaves, which connect via JNLP by using the folowing code: > > Jenkins.instance.addNode( new DumbSlave(strSlaveName, > strSlaveDescription, > strWorkspace, > strSlaveNumExecutors, > Node.Mode.NORMAL, > strLabel, > "true" == strSlaveIsWindows ? new > JNLPLauncher() : new CommandLauncher( "172.16.222.151 root" ), > new RetentionStrategy.Always(), > new LinkedList())); > > > However I am unable to create Linux Slaves, which "Launch Slave agents on > Unix machines via ssh. The CommandLauncher class creates a slave, which > "Launch Slave agents via execution of command via the master". > I see that the ComputerLauncher class has three sub-classes: > CommandLauncher, ComputerLauncherFilter, DelegatingComputerLauncher, > JNLPLauncher. > > I am not sure whether the ComputerLauncherFilter or the > DelegatingComputerLauncher class needs to be used. > > Any help is highly appreciated. > > Thanks, > Manish > > > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
