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

public class TouchStep extends org.jenkinsci.plugins.workflow.steps.Step
Touch a file.
Author:
Robert Sandell <rsandell@cloudbees.com>.
  • Constructor Details

  • Method Details

    • getFile

      public String getFile()
      The file to touch.
      Returns:
      the file
    • getTimestamp

      public Long getTimestamp()
      Optional timestamp to set
      Returns:
      timestamp
    • setTimestamp

      @DataBoundSetter public void setTimestamp(Long timestamp)
      Optional timestamp to set
      Parameters:
      timestamp - timestamp
    • 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