Class ConsolidatedRun

java.lang.Object
se.diabol.jenkins.pipeline.consolidated.ConsolidatedRun

public final class ConsolidatedRun extends Object
One run of a view's consolidated pipeline: the pipelines it was started with, in batches, and how far it got. It is what ConsolidatedRuns keeps on disk, so it holds names and numbers only, and it is a class rather than a record because XStream writes its fields.

The plan is fixed when the run starts: a view that is reconfigured, or replaced by a seed job, while its run is going does not change what the run does. Instances handed out by ConsolidatedRuns.of(java.lang.String) are copies that nothing changes any more.

  • Method Details

    • getViewUrl

      public String getViewUrl()
      What identifies the view: the URL of the view relative to the Jenkins root.
    • getViewName

      public String getViewName()
    • getNumber

      public int getNumber()
      The number of the run within its view, starting at 1.
    • getConcurrentPipelines

      public int getConcurrentPipelines()
    • getSleepSeconds

      public int getSleepSeconds()
    • getStartedById

      public String getStartedById()
      The id of the user who started the run, or null for an anonymous one.
    • getStartedBy

      public String getStartedBy()
      The display name of the user who started the run.
    • getStartedAt

      public long getStartedAt()
    • getEstimate

      public long getEstimate()
      How long the run before this one took when it ran to its end, in milliseconds, or -1.
    • getEntries

      public List<ConsolidatedRun.Entry> getEntries()
    • getState

      public ConsolidatedRun.State getState()
    • isActive

      public boolean isActive()
    • getBatch

      public int getBatch()
      The 1-based batch the run is at, or ended with.
    • getBatches

      public int getBatches()
    • getNextBatchAt

      public long getNextBatchAt()
      Epoch milliseconds at which the next batch starts while ConsolidatedRun.State.SLEEPING, else 0.
    • getFinishedAt

      public long getFinishedAt()
      Epoch milliseconds at which the run ended, 0 while it is going.
    • getStoppedBy

      public String getStoppedBy()
      The display name of the user who stopped the run, or null.
    • jobs

      public List<String> jobs()
      The first jobs of the run's pipelines.