Class GetContextStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.GetContextStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

public class GetContextStep extends org.jenkinsci.plugins.workflow.steps.Step
Obtains a Jenkins API object from the current context.
  • Field Details

    • type

      public final Class<?> type
  • Constructor Details

    • GetContextStep

      @DataBoundConstructor public GetContextStep(Class<?> type)
  • 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