Class ConsolidatedRun
java.lang.Object
se.diabol.jenkins.pipeline.consolidated.ConsolidatedRun
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne pipeline of the run.static enumWhere a run stands. -
Method Summary
Modifier and TypeMethodDescriptionintgetBatch()The 1-based batch the run is at, or ended with.intintlongHow long the run before this one took when it ran to its end, in milliseconds, or -1.longEpoch milliseconds at which the run ended, 0 while it is going.longEpoch milliseconds at which the next batch starts whileConsolidatedRun.State.SLEEPING, else 0.intThe number of the run within its view, starting at 1.intlongThe display name of the user who started the run.The id of the user who started the run, or null for an anonymous one.getState()The display name of the user who stopped the run, or null.What identifies the view: the URL of the view relative to the Jenkins root.booleanisActive()jobs()The first jobs of the run's pipelines.
-
Method Details
-
getViewUrl
What identifies the view: the URL of the view relative to the Jenkins root. -
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
The id of the user who started the run, or null for an anonymous one. -
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
-
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 whileConsolidatedRun.State.SLEEPING, else 0. -
getFinishedAt
public long getFinishedAt()Epoch milliseconds at which the run ended, 0 while it is going. -
getStoppedBy
The display name of the user who stopped the run, or null. -
jobs
The first jobs of the run's pipelines.
-