Class DSL

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, Serializable

    public class DSL
    extends groovy.lang.GroovyObjectSupport
    implements Serializable
    Calls Steps and other DSL objects.
    See Also:
    Serialized Form
    • Field Detail


        public static String UNSAFE_GROOVY_INTERPOLATION
    • Constructor Detail

      • DSL

        public DSL​(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle)
    • Method Detail

      • isKeepStepArguments

        public static boolean isKeepStepArguments()
        Tell us if we should store Step arguments in an ArgumentsAction or simply discard them (if set to false, explicitly)
      • invokeMethod

        public Object invokeMethod​(String name,
                                   Object args)
        Executes the Step implementation specified by the name argument.
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
        invokeMethod in class groovy.lang.GroovyObjectSupport
        If the step completes execution synchronously, the result will be returned. Otherwise this method suspends.
      • invokeStep

        protected Object invokeStep​(org.jenkinsci.plugins.workflow.steps.StepDescriptor d,
                                    String name,
                                    Object args)
        When invokeMethod(String, Object) is calling a StepDescriptor
        d - The StepDescriptor being invoked.
        name - The name used to invoke the step. May be StepDescriptor.getFunctionName(), a symbol as in StepDescriptor.metaStepsOf(java.lang.String), or d.clazz.getName().
        args - The arguments passed to the step.