Class PwdStep

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

public class PwdStep extends org.jenkinsci.plugins.workflow.steps.Step
Returns the working directory path. Used like:
 node {
     def x = pwd() // where is my workspace?
 }
 
  • Constructor Details

    • PwdStep

      @DataBoundConstructor public PwdStep()
  • Method Details

    • isTmp

      public boolean isTmp()
    • setTmp

      @DataBoundSetter public void setTmp(boolean tmp)
    • 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