diff --git a/core/src/main/java/hudson/PluginWrapper.java b/core/src/main/java/hudson/PluginWrapper.java index 7a82565a04..8f8ba8782d 100644 --- a/core/src/main/java/hudson/PluginWrapper.java +++ b/core/src/main/java/hudson/PluginWrapper.java @@ -257,6 +257,11 @@ public final class PluginWrapper { return shortName; } + @Override + public String toString() { + return "Plugin:" + getShortName(); + } + /** * Returns a one-line descriptive name of this plugin. */ diff --git a/core/src/main/resources/hudson/model/Hudson/_script.jelly b/core/src/main/resources/hudson/model/Hudson/_script.jelly index 351fdf1716..c0cdfffe13 100644 --- a/core/src/main/resources/hudson/model/Hudson/_script.jelly +++ b/core/src/main/resources/hudson/model/Hudson/_script.jelly @@ -8,11 +8,14 @@

Script Console

- Type in arbitrary Groovy script and + Type in an arbitrary Groovy script and execute it on the server. Useful for trouble-shooting and diagnostics. Use the 'println' command to see the output (if you use System.out, - it will go to the server's stdout, which is harder to see.) + it will go to the server's stdout, which is harder to see.) Example:

+
+println(hudson.model.Hudson.instance.pluginManager.plugins)
+