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 Summary
Nested Classes Modifier and Type Class Description static class
PrependToFileStep.DescriptorImpl
static class
PrependToFileStep.ExecutionImpl
The execution ofPrependToFileStep
.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PrependToFileStep(String file, String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
Gets the content to prepend.String
getFile()
The file to prepend to.org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
PrependToFileStep
@DataBoundConstructor public PrependToFileStep(String file, String content) throws Descriptor.FormException
- Throws:
Descriptor.FormException
-
-