Class PrependToFileStep
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.PrependToFileStep
- All Implemented Interfaces:
- ExtensionPoint,- Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class PrependToFileStep
extends org.jenkinsci.plugins.workflow.steps.Step
Prepend given content to a given file.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.jenkinsci.plugins.workflow.steps.StepgetDescriptor
- 
Constructor Details- 
PrependToFileStep@DataBoundConstructor public PrependToFileStep(String file, String content) throws Descriptor.FormException - Throws:
- Descriptor.FormException
 
 
- 
- 
Method Details- 
getFileThe file to prepend to.- Returns:
- the file
 
- 
getContentGets the content to prepend.- Returns:
- the content
 
- 
startpublic org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
- startin class- org.jenkinsci.plugins.workflow.steps.Step
- Throws:
- Exception
 
 
-