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>
public class ReadJSONStep extends AbstractFileOrTextStep
Reads a JSON file from the workspace.- Author:
- Nikolas Falco
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadJSONStep.DescriptorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanreturnPojo-
Fields inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
text
-
-
Constructor Summary
Constructors Constructor Description ReadJSONStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetReturnPojo()Whether 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.AbstractFileOrTextStep
getText, setText
-
Methods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStep
getFile, setFile
-
-
-
-
Method Detail
-
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
-
getReturnPojo
public 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.
-
-