Class DirectiveGenerator
java.lang.Object
org.jenkinsci.plugins.workflow.cps.Snippetizer
org.jenkinsci.plugins.pipeline.modeldefinition.generator.DirectiveGenerator
- All Implemented Interfaces:
ExtensionPoint,Action,DescriptorByNameOwner,ModelObject,RootAction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
org.jenkinsci.plugins.workflow.cps.Snippetizer.LocalAction, org.jenkinsci.plugins.workflow.cps.Snippetizer.PerJobAdder, org.jenkinsci.plugins.workflow.cps.Snippetizer.QuasiDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoGenerateDirective(org.kohsuke.stapler.StaplerRequest2 req, String json) static Stringstatic StringmapToClosure(Map<String, ?> args) Methods inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
doGenerateSnippet, getDisplayName, getGlobalVariables, getIconFileName, getItem, getQuasiDescriptors, getSnippetizerLinks, object2Groovy, object2GroovyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Field Details
-
ACTION_URL
- See Also:
-
GENERATE_URL
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final String GENERATE_URL- See Also:
-
-
Constructor Details
-
DirectiveGenerator
public DirectiveGenerator()
-
-
Method Details
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Overrides:
getUrlNamein classorg.jenkinsci.plugins.workflow.cps.Snippetizer
-
getDirectives
-
doGenerateDirective
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public org.kohsuke.stapler.HttpResponse doGenerateDirective(org.kohsuke.stapler.StaplerRequest2 req, @QueryParameter String json) throws Exception - Throws:
Exception
-
mapToClosure
-
getSymbolForDescriptor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static String getSymbolForDescriptor(Descriptor d)
-