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 Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
text -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractFileOrTextStep
getText, setTextMethods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStep
getFile, setFileMethods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
ReadPropertiesStep
@DataBoundConstructor public ReadPropertiesStep()
-
-
Method Details
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-
getDefaults
Default key/values to populate the map with before parsing.- Returns:
- the defaults
-
setDefaults
Default key/values to populate the map with before parsing.- Parameters:
defaults- the defaults
-
isInterpolate
Flag 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
-
setInterpolate
Set the interpolated parameter.- Parameters:
interpolate- parameter.
-
getCharset
-
setCharset
The charset encoding to use when read the properties file. Defaults to ISO 8859-1 .- Parameters:
charset- the charset
-