Yes, the groovy script console should have access to all classes in Jenkins including plugin classes.
On Mon, Nov 10, 2014 at 6:51 AM, munsingh <[email protected]> wrote: > Thanks Robert. > > QQ: How do I instantiate this class via groovy script, can I import this > class in groovy and use it? > > Regards, > Manish > > > On Friday, 7 November 2014 16:16:45 UTC+5:30, munsingh 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.
