Hi,
Thank you.
I created SSHLauncher as below
*new SSHLauncher("host", port, username, password, privatekey, null, null);*
Here, i am getting problem with the connection like *credentials id is null*.
For that we have an interface called *StandardUsernameCredentials. *
Here my problem is how can i create a right instance to the interface
"StandardUsernameCredentials".
Please help me on creating instance to interface
"StandardUsernameCredentials". I gone through some impls. But, i am
getting confusion.
Please help me
Thanks,
Hemalatha .
On Thursday, April 10, 2014 10:39:38 AM UTC+5:30, Hema Latha wrote:
>
> 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].
For more options, visit https://groups.google.com/d/optout.