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

      • UNSAFE_GROOVY_INTERPOLATION

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        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
        Overrides:
        invokeMethod in class groovy.lang.GroovyObjectSupport
        Returns:
        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
        Parameters:
        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.