提交 2fe2487b 编写于 作者: J Jesse Glick

FindBugs, and more clearly stating which transport is in use.

上级 492dbbed
......@@ -143,7 +143,8 @@ public class CLI implements AutoCloseable {
try {
_channel = connectViaCliPort(jenkins, getCliTcpPort(url));
} catch (IOException e) {
LOGGER.log(Level.FINE,"Failed to connect via CLI port. Falling back to HTTP",e);
System.err.println("Failed to connect via CLI port. Falling back to HTTP: " + e.getMessage());
LOGGER.log(Level.FINE, null, e);
try {
_channel = connectViaHttp(url);
} catch (IOException e2) {
......@@ -559,9 +560,9 @@ public class CLI implements AutoCloseable {
return -1;
}
System.err.println("Connecting to: " + endpointDescription);
System.err.println("Connecting via SSH to: " + endpointDescription);
int sshPort = Integer.valueOf(endpointDescription.split(":")[1]);
int sshPort = Integer.parseInt(endpointDescription.split(":")[1]);
String sshHost = endpointDescription.split(":")[0];
StringBuilder command = new StringBuilder();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册