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
@Extension public class DirectiveGenerator extends org.jenkinsci.plugins.workflow.cps.Snippetizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectiveGenerator.DeclarativeDirectivesLink
static class
DirectiveGenerator.DeclarativeOnlineDocsLink
static class
DirectiveGenerator.PerMultiBranchFolderAdder
static class
DirectiveGenerator.PerOrgFolderAdder
static class
DirectiveGenerator.PerWorkflowJobAdder
-
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
Fields Modifier and Type Field Description static String
ACTION_URL
static String
GENERATE_URL
-
Constructor Summary
Constructors Constructor Description DirectiveGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doGenerateDirective(org.kohsuke.stapler.StaplerRequest req, String json)
List<DirectiveDescriptor>
getDirectives()
static String
getSymbolForDescriptor(Descriptor d)
String
getUrlName()
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 Detail
-
ACTION_URL
public static final String ACTION_URL
- See Also:
- Constant Field Values
-
GENERATE_URL
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final String GENERATE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classorg.jenkinsci.plugins.workflow.cps.Snippetizer
-
getDirectives
@NonNull public List<DirectiveDescriptor> getDirectives()
-
doGenerateDirective
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public org.kohsuke.stapler.HttpResponse doGenerateDirective(org.kohsuke.stapler.StaplerRequest req, @QueryParameter String json) throws Exception
- Throws:
Exception
-
mapToClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static String mapToClosure(Map<String,?> args)
-
getSymbolForDescriptor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static String getSymbolForDescriptor(Descriptor d)
-
-