/** * Autocompletion method, called by UI to support user filling the form * * @param value * @return */ public AutoCompletionCandidates doAutoCompleteNodeListString(@QueryParameter String value) { final AutoCompletionCandidates candidates = new AutoCompletionCandidates(); for (Node n : Jenkins.getInstance().getNodes()) { candidates.add(n.getSelfLabel().getExpression()); } return candidates; }