jenkinsci/jenkins · error · IllegalArgumentException
No such plugin found with the name {0}
Error message
No such plugin found with the name {0} What it means
Error "No such plugin found with the name {0}" thrown in jenkinsci/jenkins.
Source
Thrown at core/src/main/java/hudson/cli/EnablePluginCommand.java:75
@Override
protected int run() throws Exception {
Jenkins jenkins = Jenkins.get();
jenkins.checkPermission(Jenkins.ADMINISTER);
PluginManager manager = jenkins.getPluginManager();
boolean enabledAnyPlugins = false;
for (String pluginName : pluginNames) {
enabledAnyPlugins |= enablePlugin(manager, pluginName);
}
if (restart && enabledAnyPlugins) {
jenkins.safeRestart();
}
return 0;
}
private boolean enablePlugin(PluginManager manager, String shortName) throws IOException {
PluginWrapper plugin = manager.getPlugin(shortName);
if (plugin == null) {
throw new IllegalArgumentException(Messages.EnablePluginCommand_NoSuchPlugin(shortName));
}
if (plugin.isEnabled()) {
return false;
}
stdout.printf("Enabling plugin `%s' (%s)%n", plugin.getShortName(), plugin.getVersion());
enableDependencies(manager, plugin);
plugin.enable();
stdout.printf("Plugin `%s' was enabled.%n", plugin.getShortName());
return true;
}
private void enableDependencies(PluginManager manager, PluginWrapper plugin) throws IOException {
for (PluginWrapper.Dependency dep : plugin.getDependencies()) {
PluginWrapper dependency = manager.getPlugin(dep.shortName);
if (dependency == null) {
throw new IllegalArgumentException(Messages.EnablePluginCommand_MissingDependencies(plugin.getShortName(), dep));
}
if (!dependency.isEnabled()) {View on GitHub (pinned to 2e228ff40b)
Solutions
- Run 'list-plugins' to get the exact short name of the installed plugin.
- Use the plugin's short name (e.g. 'git'), not its display name.
- Install the plugin first with install-plugin if it is not present.
When it happens
Trigger: Raised when the enable-plugin CLI command is given a plugin short name that is not installed in Jenkins.
Common situations: See trigger scenarios.
AI-assisted analysis of jenkinsci/jenkins@2e228ff40b (2026-08-14).
Data as JSON: /api/errors/bd97e329211998b2.
Report an issue: GitHub.