jenkinsci/jenkins · error · IllegalArgumentException
No such node '
Error message
No such node '
What it means
Error "No such node '" thrown in jenkinsci/jenkins.
Source
Thrown at core/src/main/java/hudson/cli/DeleteNodeCommand.java:68
return Messages.DeleteNodeCommand_ShortDescription();
}
@Override
protected int run() throws Exception {
boolean errorOccurred = false;
final Jenkins jenkins = Jenkins.get();
final HashSet<String> hs = new HashSet<>(nodes);
for (String node_s : hs) {
Node node;
try {
node = jenkins.getNode(node_s);
if (node == null) {
throw new IllegalArgumentException("No such node '" + node_s + "'");
}
node.toComputer().doDoDelete();
} catch (Exception e) {
if (hs.size() == 1) {
throw e;
}
final String errorMsg = node_s + ": " + e.getMessage();
stderr.println(errorMsg);
errorOccurred = true;
continue;
}
}
if (errorOccurred) {
throw new AbortException(CLI_LISTPARAM_SUMMARY_ERROR_TEXT);
}View on GitHub (pinned to 2e228ff40b)
Solutions
- Run 'list-nodes' (or check Manage Jenkins > Nodes) to confirm the exact node name.
- Quote node names containing spaces when passing them on the command line.
- Check for typos; node names are case-sensitive.
When it happens
Trigger: Raised when the delete-node CLI command is given a node name that does not exist in Jenkins. Check the node name for typos or use the suggested similar name.
Common situations: See trigger scenarios.
AI-assisted analysis of jenkinsci/jenkins@2e228ff40b (2026-08-14).
Data as JSON: /api/errors/990344e502189a58.
Report an issue: GitHub.