{"record":{"id":"47600d9b5b2a0a5a","repo":"jenkinsci/jenkins","slug":"error-occurred-while-performing-this-command-see-47600d","errorCode":null,"errorMessage":"Error occurred while performing this command, see previous stderr output.","messagePattern":"Error occurred while performing this command, see previous stderr output\\.","errorType":"exception","errorClass":"AbortException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/hudson/cli/ReloadJobCommand.java","lineNumber":100,"sourceCode":"                                job_s, project.getFullName()));\n                }\n\n                job.checkPermission(Item.CONFIGURE);\n                job.doReload();\n            } catch (Exception e) {\n                if (hs.size() == 1) {\n                    throw e;\n                }\n\n                final String errorMsg = job_s + \": \" + e.getMessage();\n                stderr.println(errorMsg);\n                errorOccurred = true;\n                continue;\n            }\n        }\n\n        if (errorOccurred) {\n            throw new AbortException(CLI_LISTPARAM_SUMMARY_ERROR_TEXT);\n        }\n        return 0;\n    }\n}\n","sourceCodeStart":82,"sourceCodeEnd":105,"githubUrl":"https://github.com/jenkinsci/jenkins/blob/2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc/core/src/main/java/hudson/cli/ReloadJobCommand.java#L82-L105","documentation":"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.","triggerScenarios":"`reload-job a b c` where at least one job is missing, not an AbstractItem, or doReload/checkPermission fails.","commonSituations":"Bulk reload across a job list containing deleted, locked-down (missing CONFIGURE), or non-reloadable items.","solutions":["Read the preceding stderr lines to find the failing job.","Remove/fix that job and re-run.","Pre-filter the list to existing AbstractItems the caller has CONFIGURE on."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"List<String> valid = jobs.stream()\n    .filter(n -> Jenkins.get().getItemByFullName(n) instanceof AbstractItem)\n    .toList();","typeGuard":null,"tryCatchPattern":"try { cli.execute(args); } catch (AbortException e) { /* partial: per-job stderr already printed */ }","preventionTips":["Pre-filter job lists to existing AbstractItems the caller can CONFIGURE.","Surface per-job stderr before re-running."],"tags":["cli","job","batch","summary"],"backgroundTag":null,"analyzedSha":"2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc","analyzedAt":"2026-08-14T07:07:15.274Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}