mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
Add list-plugins command
This commit is contained in:
1 parent
ba461f4d2a
commit
bb77daf0cc
4 files changed
+99
-1
No files matched your search
@@ -538,6 +538,11 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
return failedPlugins;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the plugin instance with the given short name.
|
||||
* @param shortName the short name of the plugin
|
||||
* @return The plugin singleton or <code>null</code> if a plugin with the given short name does not exist.
|
||||
*/
|
||||
public PluginWrapper getPlugin(String shortName) {
|
||||
for (PluginWrapper p : plugins) {
|
||||
if(p.getShortName().equals(shortName))
|
||||
|
||||
Reference in new issue
Block a user