I guess that instead of new JNLPLauncher(ip:port, null)
you should use new SSHLauncher(host, port, …) @see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java Robert Sandell Sony Mobile Communications Tel: +46 10 80 12721 sonymobile.com<http://sonymobile.com/> From: [email protected] [mailto:[email protected]] On Behalf Of Hema Latha Sent: den 10 april 2014 07:10 To: [email protected] Subject: Creating slave machine with Launch slave agents on Unix machines via SSH in Jenkins using Jenkins API Hi, I created a slave machine in jenkins using Jenkins api as below: Slave s = new DumbSlave(name,nodeDescription,remoteFS,numExecutors,Node.Mode.NORMAL,labelString,new JNLPLauncher(),new RetentionStrategy.Always(),new LinkedList()); jenkins.addNode(s); I am able to create Slave in jenkins. But i want to create a slave with Launch method "Launch slave agents on Unix machines via SSH". For the above i tried like Slave s = new DumbSlave(name,nodeDescription,remoteFS,numExecutors,Node.Mode.NORMAL,labelString,new JNLPLauncher(ip:port, null),new RetentionStrategy.Always(),new LinkedList()); jenkins.addNode(s); But, getting connection time out. Here , i need to provide ip address, credentials like username, password, and private key file. Using jenkins api, how can i set these details for creating a slave via SSH. Please can any one help me? Thanks, Hemalatha. -- 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]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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.
