Class PipelineJsonWriter

java.lang.Object
io.jenkins.plugins.pipelinegraphview.utils.PipelineJsonWriter

public final class PipelineJsonWriter extends Object
Writes plugin DTOs to JSON via Jackson, wrapped in the Stapler okJSON envelope ({"status":"ok","data":...}) that the frontend expects.

DTOs carry Jackson annotations to control the wire format — null values are omitted (matching the historical bean-processor output) and fields are read regardless of visibility so DTOs can keep package-private fields.

  • Method Details

    • write

      public static void write(Object data, OutputStream out)
    • writeWithInputPermissions

      public static void writeWithInputPermissions(Object data, org.jenkinsci.plugins.workflow.job.WorkflowRun run, OutputStream out)
      Writes a run's graph or steps, adding what the current user can do with the inputs it's waiting on. See InputPermissions.