Class WithContextStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.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 Details

    • context

      public final Object context
  • Constructor Details

    • WithContextStep

      @DataBoundConstructor public WithContextStep(Object context)
  • Method Details

    • 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