Class 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>.
    • Method Detail

      • 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