java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
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
  • Field Details

    • returnPojo

      protected boolean returnPojo
  • Constructor Details

    • ReadJSONStep

      @DataBoundConstructor public ReadJSONStep()
  • Method Details

    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Specified by:
      start in class org.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.