Class WorkspaceStep

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

    public final class WorkspaceStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Allocates a workspace on the current node and uses that as the default directory for nested steps. ExecutorStep already does so, but this may be used to allocate additional workspaces.
    • Constructor Detail

      • WorkspaceStep

        @DataBoundConstructor
        public WorkspaceStep​(String dir)
    • Method Detail

      • getDir

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