|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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/groups/opt_out.

Thanks for the clarification! You are right.
IntegrationPointFactory.createLocalIntegrationPoint(...) actually does call createIntegrationPoint(127.0.0.1, 0, ...).
Currently, I do this to test the mksapi.jar:
IntegrationPointFactory ipf = IntegrationPointFactory.getInstance();
IntegrationPoint intPt = ipf.createLocalIntegrationPoint(4, 10);
intPt.setAutoStartIntegrityClient(true);
CmdRunner cmdRunner = intPt.createSession(..., ...).createCmdRunner();
cmdRunner.setDefaultHostname(...);
cmdRunner.setDefaultPort(7001);
// Set command defaults
String[] cmd = new String[] { "si", "about" };
Response execute = cmdRunner.execute(cmd);
System.err.println(execute.getExitCode());
Can we also specify, that the client is started automatically by jenkins, via the API call "setAutoStartIntegrityClient"?
Also, "createLocalIntegrationPoint" wants to connect to port 0 (which is not actually a valid port of course). Seems like the port is figured out somehow? But in the APISession, the local client is only used if ipPort > 0.
Do you know which port to set then and why we cannot use 0?
Thanks!