Class PipelineJsonWriter
java.lang.Object
io.jenkins.plugins.pipelinegraphview.utils.PipelineJsonWriter
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 Summary
Modifier and TypeMethodDescriptionstatic voidwrite(Object data, OutputStream out) static voidwriteWithInputPermissions(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.
-
Method Details
-
write
-
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. SeeInputPermissions.
-