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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
Nested 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.QuasiDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doGenerateDirective
(org.kohsuke.stapler.StaplerRequest2 req, String json) static String
static String
mapToClosure
(Map<String, ?> args) Methods inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
doGenerateSnippet, getDisplayName, getGlobalVariables, getIconFileName, getItem, getQuasiDescriptors, getSnippetizerLinks, object2Groovy, object2Groovy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in 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)
-