Class FlowChain

java.lang.Object
se.diabol.jenkins.pipeline.flow.FlowChain

public final class FlowChain extends Object
A run together with the runs it started, as one pipeline instance. The stages of a started run follow the stage that started it, on the first rows with room for them, with an arrow from that stage and from the task that holds the step; the runs they started follow in turn. Their stage and task ids carry the started run's id as a prefix, their stage names its job's name. A started run still waiting in the queue is one queued task; one that was cancelled before it started, or has been deleted since, is left out. A started job that is not a Pipeline brings the chain of jobs downstream of it, laid out as a component of that job would show it, and the Pipeline runs the builds of that chain triggered follow their tasks the same way; expand(se.diabol.jenkins.pipeline.model.Pipeline, se.diabol.jenkins.pipeline.model.ViewSettings) does the same for the instance of a chain of jobs, so that chains and Pipeline runs mix freely.

Which runs a run started comes from DownstreamRuns. The jobs are looked up as the system, so that the pipeline, which is cached and served to every viewer, does not depend on who computed it: as with chains of jobs, everyone who can see the view sees every job the chain reaches, and acting on one still needs the permission on that job.

The class also builds the aggregated row of a Pipeline job, in which every stage shows the newest run that ran it.

  • Method Summary

    Modifier and Type
    Method
    Description
    static Pipeline
    expand(Pipeline instance, ViewSettings settings)
    The instance of a chain of jobs with the Pipeline runs its builds triggered, and what those started, following their tasks the way of(org.jenkinsci.plugins.workflow.job.WorkflowRun, se.diabol.jenkins.pipeline.model.ViewSettings) follows the stages of a Pipeline run.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • expand

      public static Pipeline expand(Pipeline instance, ViewSettings settings)
      The instance of a chain of jobs with the Pipeline runs its builds triggered, and what those started, following their tasks the way of(org.jenkinsci.plugins.workflow.job.WorkflowRun, se.diabol.jenkins.pipeline.model.ViewSettings) follows the stages of a Pipeline run. An instance without any stays as it is.