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

      • PwdStep

        @DataBoundConstructor
        public PwdStep()
    • Method Detail

      • 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