Class ConsolidatedComponent
java.lang.Object
se.diabol.jenkins.pipeline.consolidated.ConsolidatedComponent
Draws the consolidated pipeline of a view as a component like any other: one pipeline whose stages are the
batches, each leading to the next, and whose tasks are the pipelines of the view, so that the page shows it with
what it has for stages and tasks. A task links to the build that started its pipeline.
While a run is going the component shows that run, as it was planned when it started. Otherwise it shows what a run started now would do, which follows the view's configuration, and every pipeline carries the outcome it had in the last run.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Componentof(ConsolidatedRun run, List<ConsolidatedRuns.Target> targets, int concurrentPipelines, int sleepSeconds, int columns) The consolidated pipeline of a view.static longwallDuration(Pipeline pipeline) How long a pipeline instance took from its start to the end of its last task, waiting included, in milliseconds; -1 for one that is still going, that failed or was aborted, which usually means it stopped early, or that never ran.
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
of
public static Component of(ConsolidatedRun run, List<ConsolidatedRuns.Target> targets, int concurrentPipelines, int sleepSeconds, int columns) The consolidated pipeline of a view.- Parameters:
run- the view's run that is going on, or its last one, or nulltargets- the pipelines a run started now would run, in orderconcurrentPipelines- how many of them a batch of such a run would holdsleepSeconds- how long such a run would sleep between two batchescolumns- how many columns the widest pipeline of the view takes; the batches wrap to stay within it
-
wallDuration
How long a pipeline instance took from its start to the end of its last task, waiting included, in milliseconds; -1 for one that is still going, that failed or was aborted, which usually means it stopped early, or that never ran. A view hands this over for the newest instance of each of its pipelines, so that the first run of its consolidated pipeline has something to go by.
-