Open lovi-cn opened 4 years ago
public static ArrayList<String> getComputerDeatail(String jenkinsUrl, String userName, String passWord) {
ArrayList<String> arrayList = new ArrayList();
try {
JenkinsServer jenkinsServer = new JenkinsServer(new URI(jenkinsUrl),userName,passWord);
Iterator<String> iterator = jenkinsServer.getComputers().keySet().iterator();
while (iterator.hasNext())
arrayList.add(iterator.next());
} catch (URISyntaxException|IOException uRISyntaxException) {
uRISyntaxException.printStackTrace();
}
return arrayList;
}
The error occurred on line 46:
List<Node> propertiesNode = doc.selectNodes("//project/properties");
It won't get any nodes,because of the parameter:Shouldn't it be "//properties" ?