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.StepWrites a yaml file from the workspace.- Author:
- Javier DELGADO <witokondoria@gmail.com>.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWriteYamlStep.DescriptorImplstatic classWriteYamlStep.Execution-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WriteYamlStep()WriteYamlStep(Object data)Deprecated.WriteYamlStep(String file, Object data)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCharset()ObjectgetData()An Object containing data to be saved.CollectiongetDatas()A Collection containing datas to be saved.StringgetFile()Name of the yaml file to write.booleanisOverwrite()booleanisReturnText()voidsetCharset(String charset)The charset encoding to use when writing the file.voidsetData(Object data)An Object containing data to be saved.voidsetDatas(Collection datas)A Collection containing datas to be saved.voidsetFile(String file)voidsetOverwrite(boolean overwrite)voidsetReturnText(boolean returnText)org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
WriteYamlStep
@DataBoundConstructor public WriteYamlStep()
-
WriteYamlStep
@Deprecated public WriteYamlStep(Object data)
Deprecated.
-
WriteYamlStep
@Deprecated public WriteYamlStep(String file, Object data)
Deprecated.
-
-
Method Detail
-
getFile
public String getFile()
Name of the yaml file to write.- Returns:
- file name
-
setFile
@DataBoundSetter public void setFile(String file)
-
getData
public Object getData()
An Object containing data to be saved.- Returns:
- data to save as yaml
-
setData
@DataBoundSetter public void setData(Object data)
An Object containing data to be saved.- Parameters:
data- data to save as yaml
-
getDatas
public Collection getDatas()
A Collection containing datas to be saved.- Returns:
- datas to save as several yaml documents
-
setDatas
@DataBoundSetter public void setDatas(Collection datas)
A Collection containing datas to be saved.- Parameters:
datas- to save as several yaml documents
-
getCharset
public String getCharset()
-
setCharset
@DataBoundSetter public void setCharset(String charset)
The charset encoding to use when writing the file. Defaults to UTF-8.- Parameters:
charset- the charset- See Also:
Charset,Charset.forName(String)
-
isOverwrite
public boolean isOverwrite()
-
setOverwrite
@DataBoundSetter public void setOverwrite(boolean overwrite)
-
isReturnText
public boolean isReturnText()
-
setReturnText
@DataBoundSetter public void setReturnText(boolean returnText)
-
-