public class BuildPipeline extends Object
Constructor and Description |
---|
BuildPipeline() |
Modifier and Type | Method and Description |
---|---|
BuildPipelineNode |
add(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
BuildPipelineNode |
buildTree()
Reconstruct a Jenkins pipeline tree from the info gathered in the
DatadogGraphListener . |
public BuildPipelineNode add(org.jenkinsci.plugins.workflow.graph.FlowNode node)
public BuildPipelineNode buildTree()
DatadogGraphListener
.
Example:
Starting from the stagesByPath:
Key: (Stage1, Stage2) - Value: (Stage2)
Key: (Stage1, Stage2, Stage3) - Value: (Stage3)
Key: (Stage1) - Value: (Stage1)
it will be returned the following tree:
root
-- stage1
-- stage2
-- stage3Copyright © 2016–2023. All rights reserved.