in cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/VMWareCloudClientFactory.java [171:186]
protected VMWareApiConnector createConnectorFromParams(@NotNull final CloudState state, CloudClientParameters params){
String serverUrl = params.getParameter(VMWareWebConstants.SERVER_URL);
String username = params.getParameter(VMWareWebConstants.USERNAME);
String password = params.getParameter(VMWareWebConstants.SECURE_PASSWORD);
if (serverUrl != null && username != null) {
try {
return VmwareApiConnectorsPool.getOrCreateConnector(
new URL(serverUrl), username, password, myServerSettings.getServerUUID(), state.getProfileId(),
myInstancesProvider, mySslTrustStoreProvider);
} catch (MalformedURLException e) {
LOG.warnAndDebugDetails(e.toString(), e);
throw new CloudException("Unable to connect to vCenter: " + e.toString());
}
}
throw new CloudException("Unable to connect to vCenter: please check connection parameters" );
}