Class ReadPropertiesStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStep
org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
org.jenkinsci.plugins.pipeline.utility.steps.conf.ReadPropertiesStep
- All Implemented Interfaces:
- ExtensionPoint,- Describable<org.jenkinsci.plugins.workflow.steps.Step>
Reads java properties formatted files and texts into a map.
- Author:
- Robert Sandell <rsandell@cloudbees.com>.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextSteptext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDefault key/values to populate the map with before parsing.Flag to indicate if the properties should be interpolated or not.voidsetCharset(String charset) The charset encoding to use when read the properties file.voidsetDefaults(Map<Object, Object> defaults) Default key/values to populate the map with before parsing.voidsetInterpolate(Boolean interpolate) Set the interpolated parameter.org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepgetText, setTextMethods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStepgetFile, setFileMethods inherited from class org.jenkinsci.plugins.workflow.steps.StepgetDescriptor
- 
Constructor Details- 
ReadPropertiesStep@DataBoundConstructor public ReadPropertiesStep()
 
- 
- 
Method Details- 
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
 
- 
getDefaultsDefault key/values to populate the map with before parsing.- Returns:
- the defaults
 
- 
setDefaultsDefault key/values to populate the map with before parsing.- Parameters:
- defaults- the defaults
 
- 
isInterpolateFlag to indicate if the properties should be interpolated or not. I.E. : baseUrl = http://localhost url = ${baseUrl}/resources The value of url should be evaluated to http://localhost/resources with the interpolation on.- Returns:
- the value of interpolated
 
- 
setInterpolateSet the interpolated parameter.- Parameters:
- interpolate- parameter.
 
- 
getCharset
- 
setCharsetThe charset encoding to use when read the properties file. Defaults to ISO 8859-1 .- Parameters:
- charset- the charset
 
 
-