Class ReadJSONStep
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.json.ReadJSONStep
- All Implemented Interfaces:
- ExtensionPoint,- Describable<org.jenkinsci.plugins.workflow.steps.Step>
Reads a JSON file from the workspace.
- Author:
- Nikolas Falco
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsFields inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextSteptext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanWhether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib).voidsetReturnPojo(boolean returnPojo) Whether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib).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
- 
Field Details- 
returnPojoprotected boolean returnPojo
 
- 
- 
Constructor Details- 
ReadJSONStep@DataBoundConstructor public ReadJSONStep()
 
- 
- 
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
 
- 
getReturnPojopublic boolean getReturnPojo()Whether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib). Default is JSON.- Returns:
- whether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib). Default is JSON.
 
- 
setReturnPojo@DataBoundSetter public void setReturnPojo(boolean returnPojo) Whether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib). Default is JSON.- Parameters:
- returnPojo- whether to return a pure Java POJO made of Map and List or the deserialized JSON object (from json-lib). Default is JSON.
 
 
-