Class TouchStep
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>.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
The file to touch.Optional timestamp to setvoid
setTimestamp
(Long timestamp) Optional timestamp to setorg.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
TouchStep
- Throws:
Descriptor.FormException
-
-
Method Details
-
getFile
The file to touch.- Returns:
- the file
-
getTimestamp
Optional timestamp to set- Returns:
- timestamp
-
setTimestamp
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 classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-