doDynamic
12 | * method exists and if so, dispatch it via that method.
13 | */
14 |
15 | public interface RubyDoDynamic {
16 |
17 | void doDynamic(StaplerRequest request, StaplerResponse response);
18 | }
19 |
--------------------------------------------------------------------------------
/src/main/java/ruby/RubyExtensionFinder.java:
--------------------------------------------------------------------------------
1 | package ruby;
2 |
3 |
4 | import hudson.Extension;
5 | import hudson.ExtensionComponent;
6 | import hudson.ExtensionFinder;
7 | import hudson.model.Hudson;
8 |
9 | import java.util.ArrayList;
10 | import java.util.Collection;
11 |
12 |
13 | /**
14 | * Presents Ruby extensions to Jenkins.
15 | *
16 | * Whenever a ruby plugin loads, it scans its codebase and finds all of the objects
17 | * which implement Jenkins extensions points (there can be any number of these per plugin)
18 | *
19 | * Sometime later, whenever Jenkins is asking about a particular extension type, like a
20 | * Publisher on BuildWrapper, it will query this ExtensionFinder among others. This finder then
21 | * delegates to the ruby plugin to see if it has any extensions of the requested type.
22 | *
23 | * @see hudson.ExtensionPoint
24 | */
25 |
26 | @SuppressWarnings({"UnusedDeclaration"})
27 | @Extension
28 | public class RubyExtensionFinder extends ExtensionFinder {
29 |
30 | @Override
31 | public 6 | With proper Jenkins UI tags 7 | <%= it %> 8 |
9 | 12 | <% end %> 13 | <% end %> -------------------------------------------------------------------------------- /src/main/resources/test_root_action/index.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | I am <%= it.class %>!! 4 | <%= 1+1 %> 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/help-globalConfig.html: -------------------------------------------------------------------------------- 1 |3 | This HTML fragment will be injected into the configuration screen 4 | when the user clicks the 'help' icon. See global.jelly for how the 5 | form decides which page to load. 6 | You can have any HTML fragment here. 7 |
8 |