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

AbortException (CLI_LISTPARAM_SUMMARY_ERROR_TEXT) from reload-job after the loop when multiple jobs were requested and at least one failed. Per-job failures were already printed to stderr as `<job>: <message>`. Single-job errors propagate directly.

Source

Thrown at core/src/main/java/hudson/cli/ReloadJobCommand.java:100

                                job_s, project.getFullName()));
                }

                job.checkPermission(Item.CONFIGURE);
                job.doReload();
            } catch (Exception e) {
                if (hs.size() == 1) {
                    throw e;
                }

                final String errorMsg = job_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. Read the preceding stderr lines to find the failing job.
  2. Remove/fix that job and re-run.
  3. Pre-filter the list to existing AbstractItems the caller has CONFIGURE on.
Defensive patterns

Strategy: validation

Validate before calling

List<String> valid = jobs.stream()
    .filter(n -> Jenkins.get().getItemByFullName(n) instanceof AbstractItem)
    .toList();

Try / catch

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

Prevention

When it happens

Trigger: `reload-job a b c` where at least one job is missing, not an AbstractItem, or doReload/checkPermission fails.

Common situations: Bulk reload across a job list containing deleted, locked-down (missing CONFIGURE), or non-reloadable items.

Related errors


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