Class WriteFileStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.workflow.steps.WriteFileStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public final class WriteFileStep extends org.jenkinsci.plugins.workflow.steps.Step
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WriteFileStep.DescriptorImpl
static class
WriteFileStep.Execution
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WriteFileStep(String file, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncoding()
String
getFile()
String
getText()
void
setEncoding(String encoding)
Set the encoding to be used when writing the file.org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Method Detail
-
getFile
public String getFile()
-
getText
public String getText()
-
getEncoding
public String getEncoding()
-
setEncoding
@DataBoundSetter public void setEncoding(String encoding)
Set the encoding to be used when writing the file. If the specified value is null or whitespace-only, then the platform default encoding will be used. If the text is a Base64-encoded string, the decoded binary data can be written to the file by specifyingBase64
as the encoding.
-
-