Class PipelineGraphViewCache

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

public class PipelineGraphViewCache extends Object
Disk-backed cache for the computed pipeline graph and step list of completed runs. For in-progress runs the cache is transparent (every call recomputes). Once a run is no longer building, results are persisted as JSON under the run's directory and can be streamed straight back to HTTP clients without going through Jackson on the read path.

The on-disk format is the same wire JSON the tree / allSteps endpoints emit (the data portion of the {"status":"ok","data":...} envelope). tryServeTree(WorkflowRun, OutputStream) / tryServeAllSteps(WorkflowRun, OutputStream) wrap that in the envelope and copy bytes through.

Schema version is encoded in the file name: a future format change just bumps SCHEMA_VERSION so old files become orphans on disk and are ignored.