{"record":{"id":"bd97e329211998b2","repo":"jenkinsci/jenkins","slug":"no-such-plugin-found-with-the-name-0","errorCode":null,"errorMessage":"No such plugin found with the name {0}","messagePattern":"No such plugin found with the name (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/hudson/cli/EnablePluginCommand.java","lineNumber":75,"sourceCode":"    @Override\n    protected int run() throws Exception {\n        Jenkins jenkins = Jenkins.get();\n        jenkins.checkPermission(Jenkins.ADMINISTER);\n        PluginManager manager = jenkins.getPluginManager();\n        boolean enabledAnyPlugins = false;\n        for (String pluginName : pluginNames) {\n            enabledAnyPlugins |= enablePlugin(manager, pluginName);\n        }\n        if (restart && enabledAnyPlugins) {\n            jenkins.safeRestart();\n        }\n        return 0;\n    }\n\n    private boolean enablePlugin(PluginManager manager, String shortName) throws IOException {\n        PluginWrapper plugin = manager.getPlugin(shortName);\n        if (plugin == null) {\n            throw new IllegalArgumentException(Messages.EnablePluginCommand_NoSuchPlugin(shortName));\n        }\n        if (plugin.isEnabled()) {\n            return false;\n        }\n        stdout.printf(\"Enabling plugin `%s' (%s)%n\", plugin.getShortName(), plugin.getVersion());\n        enableDependencies(manager, plugin);\n        plugin.enable();\n        stdout.printf(\"Plugin `%s' was enabled.%n\", plugin.getShortName());\n        return true;\n    }\n\n    private void enableDependencies(PluginManager manager, PluginWrapper plugin) throws IOException {\n        for (PluginWrapper.Dependency dep : plugin.getDependencies()) {\n            PluginWrapper dependency = manager.getPlugin(dep.shortName);\n            if (dependency == null) {\n                throw new IllegalArgumentException(Messages.EnablePluginCommand_MissingDependencies(plugin.getShortName(), dep));\n            }\n            if (!dependency.isEnabled()) {","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/jenkinsci/jenkins/blob/2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc/core/src/main/java/hudson/cli/EnablePluginCommand.java#L57-L93","documentation":"Error \"No such plugin found with the name {0}\" thrown in jenkinsci/jenkins.","triggerScenarios":"Raised when the enable-plugin CLI command is given a plugin short name that is not installed in Jenkins.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc","analyzedAt":"2026-08-14T07:07:15.274Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}