jenkinsci/jenkins · error · AbortException

Error occurred while performing this command, see previous s

Error message

Error occurred while performing this command, see previous stderr output.

What it means

Identical summary AbortException (CLI_LISTPARAM_SUMMARY_ERROR_TEXT) but from the `online-node` CLI command. Fires after the loop when multiple nodes were requested and at least one failed; per-node errors were already written to stderr.

Source

Thrown at core/src/main/java/hudson/cli/OnlineNodeCommand.java:72

        for (String node_s : hs) {
            try {
                Computer computer = Computer.resolveForCLI(node_s);
                computer.cliOnline();
            } 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);
        }
        return 0;
    }
}

View on GitHub (pinned to 2e228ff40b)

Solutions

  1. Inspect the preceding per-node stderr lines for the failing agent.
  2. Drop the bad node from the list and re-run.
  3. Pre-filter the list against getComputers().
Defensive patterns

Strategy: validation

Validate before calling

Set<String> known = Jenkins.get().getComputers().stream()
    .map(Computer::getName).collect(Collectors.toSet());
List<String> valid = nodes.stream().filter(known::contains).toList();

Try / catch

try { cli.execute(args); } catch (AbortException e) { /* partial: check per-node stderr */ }

Prevention

When it happens

Trigger: `online-node a b c` where at least one node does not exist or cliOnline fails.

Common situations: Bulk online operations over an inventory list that includes deleted/offline agents.

Related errors


AI-assisted analysis of jenkinsci/jenkins@2e228ff40b (2026-08-14). Data as JSON: /api/errors/50dc93a16aa02289. Report an issue: GitHub.