jenkinsci/jenkins · error · IllegalArgumentException
No view or item group with the given name '{name}' found.
Error message
No view or item group with the given name '{name}' found. What it means
Error "No view or item group with the given name '{name}' found." thrown in jenkinsci/jenkins.
Source
Thrown at core/src/main/java/hudson/cli/ListJobsCommand.java:74
// If name is given retrieve jobs for the given view.
if (name != null) {
View view = h.getView(name);
if (view != null) {
jobs = view.getAllItems();
}
// If no view was found, try with an item group.
else {
final Item item = h.getItemByFullName(name);
// If item group was found use it's jobs.
if (item instanceof ModifiableTopLevelItemGroup) {
jobs = ((ModifiableTopLevelItemGroup) item).getItems();
}
// No view and no item group with the given name found.
else {
throw new IllegalArgumentException("No view or item group with the given name '" + name + "' found.");
}
}
}
// Fallback to listing all jobs.
else {
jobs = h.getItems();
}
// Print all jobs.
for (TopLevelItem item : jobs) {
stdout.println(item.getName());
}
return 0;
}
}
View on GitHub (pinned to 2e228ff40b)
Solutions
- Run 'list-views' or check the Jenkins UI to confirm the exact view or item group name.
- Quote names containing spaces.
- Check for typos; names are case-sensitive.
- Verify you have read permission on the view or item group.
When it happens
Trigger: Raised when the list-jobs CLI command is given a view or item group name that does not exist in Jenkins.
Common situations: See trigger scenarios.
AI-assisted analysis of jenkinsci/jenkins@2e228ff40b (2026-08-14).
Data as JSON: /api/errors/09f36ce373afd62c.
Report an issue: GitHub.