Class KeepEnvStep

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

    public class KeepEnvStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    All the variables not provided in the parameter will be filtered out for the enclosed block
    • Constructor Detail

      • KeepEnvStep

        @DataBoundConstructor
        public KeepEnvStep​(List<String> variables)
    • Method Detail

      • getVariables

        public List<String> getVariables()
      • 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