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

Error "Error occurred while performing this command, see previous stderr output." thrown in jenkinsci/jenkins.

Source

Thrown at core/src/main/java/hudson/cli/DeleteJobCommand.java:87

                    throw new IllegalArgumentException("No such job '" + job_s + "'");
                }

                job.checkPermission(Item.DELETE);
                job.delete();
            } 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. Check the preceding stderr output for the underlying error that caused the delete to fail.
  2. Verify the job exists and you have Job/Delete permission (hudson.model.Item.DELETE).
  3. Confirm no other process holds a lock on the job's directory under $JENKINS_HOME/jobs.
  4. Retry the delete-job command after resolving the reported error.

When it happens

Trigger: Raised when the delete-job CLI command fails partway (e.g. deletion of the job directory or one of its builds threw an exception). The root cause is printed to stderr before this summary line.

Common situations: See trigger scenarios.


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