Class WriteYamlStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.utility.steps.conf.WriteYamlStep
- All Implemented Interfaces:
- ExtensionPoint,- Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class WriteYamlStep
extends org.jenkinsci.plugins.workflow.steps.Step
Writes a yaml file from the workspace.
- Author:
- Javier DELGADO <witokondoria@gmail.com>.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructorsConstructorDescriptionWriteYamlStep(Object data) Deprecated.WriteYamlStep(String file, Object data) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptiongetData()An Object containing data to be saved.getDatas()A Collection containing datas to be saved.getFile()Name of the yaml file to write.booleanbooleanvoidsetCharset(String charset) The charset encoding to use when writing the file.voidAn Object containing data to be saved.voidsetDatas(Collection datas) A Collection containing datas to be saved.voidvoidsetOverwrite(boolean overwrite) voidsetReturnText(boolean returnText) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepgetDescriptor
- 
Constructor Details- 
WriteYamlStep@DataBoundConstructor public WriteYamlStep()
- 
WriteYamlStepDeprecated.
- 
WriteYamlStepDeprecated.
 
- 
- 
Method Details- 
getFileName of the yaml file to write.- Returns:
- file name
 
- 
setFile
- 
getDataAn Object containing data to be saved.- Returns:
- data to save as yaml
 
- 
setDataAn Object containing data to be saved.- Parameters:
- data- data to save as yaml
 
- 
getDatasA Collection containing datas to be saved.- Returns:
- datas to save as several yaml documents
 
- 
setDatasA Collection containing datas to be saved.- Parameters:
- datas- to save as several yaml documents
 
- 
getCharset
- 
setCharsetThe charset encoding to use when writing the file. Defaults to UTF-8.- Parameters:
- charset- the charset
- See Also:
 
- 
isOverwritepublic boolean isOverwrite()
- 
setOverwrite@DataBoundSetter public void setOverwrite(boolean overwrite) 
- 
isReturnTextpublic boolean isReturnText()
- 
setReturnText@DataBoundSetter public void setReturnText(boolean returnText) 
- 
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
 
 
-