Class WithContextStep

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

    public class WithContextStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Supplies a contextual Jenkins API object to a block.
    • Field Detail

      • context

        public final Object context
    • Constructor Detail

      • WithContextStep

        @DataBoundConstructor
        public WithContextStep​(Object context)
    • Method Detail

      • start

        public org.jenkinsci.plugins.workflow.steps.StepExecution start​(org.jenkinsci.plugins.workflow.steps.StepContext context)
                                                                 throws Exception
        Specified by:
        start in class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception