LOGGER.log(Level.INFO, "Creating slave SSH launcher for " + host + ":" + port);
StandardUsernameCredentials credentials = SSHLauncher.lookupSystemCredentials(template.credentialsId);
return new SSHLauncher(host, port, credentials, template.jvmOptions , template.javaPath, template.prefixStartSlaveCmd, template.suffixStartSlaveCmd, 60);
} catch(NullPointerException ex) {
throw new RuntimeException("No mapped port 22 in host for SSL. Config=" + detail);
} catch (MalformedURLException e) {
throw new RuntimeException("Malformed URL for host " + template);