Class DSL
java.lang.Object
groovy.lang.GroovyObjectSupport
org.jenkinsci.plugins.workflow.cps.DSL
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
Calls
Step
s and other DSL objects.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
invokeDescribable
(String symbol, Object _args) WheninvokeMethod(String, Object)
is calling a genericDescriptor
invokeMethod
(String name, Object args) Executes theStep
implementation specified by the name argument.protected Object
invokeStep
(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, Object args) Deprecated.protected Object
invokeStep
(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, String name, Object args) WheninvokeMethod(String, Object)
is calling aStepDescriptor
static boolean
Tell us if we should storeStep
arguments in anArgumentsAction
or simply discard them (if set to false, explicitly)protected Object
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
-
Field Details
-
UNSAFE_GROOVY_INTERPOLATION
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static String UNSAFE_GROOVY_INTERPOLATION
-
-
Constructor Details
-
DSL
public DSL(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle)
-
-
Method Details
-
readResolve
- Throws:
IOException
-
isKeepStepArguments
public static boolean isKeepStepArguments()Tell us if we should storeStep
arguments in anArgumentsAction
or simply discard them (if set to false, explicitly) -
invokeMethod
Executes theStep
implementation specified by the name argument.- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classgroovy.lang.GroovyObjectSupport
- Returns:
- If the step completes execution synchronously, the result will be returned. Otherwise this method suspends.
-
invokeStep
@Deprecated protected Object invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, Object args) Deprecated.WheninvokeMethod(String, Object)
is calling aStepDescriptor
-
invokeStep
protected Object invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, String name, Object args) WheninvokeMethod(String, Object)
is calling aStepDescriptor
- Parameters:
d
- TheStepDescriptor
being invoked.name
- The name used to invoke the step. May beStepDescriptor.getFunctionName()
, a symbol as inStepDescriptor.metaStepsOf(java.lang.String)
, ord.clazz.getName()
.args
- The arguments passed to the step.
-
invokeDescribable
WheninvokeMethod(String, Object)
is calling a genericDescriptor
-
invokeStep(StepDescriptor, String, Object)