Class 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 Detail

      • type

        public final Class<?> type
    • Constructor Detail

      • GetContextStep

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