Pipeline class abstract

Base class for CI build pipelines.

Subclasses implement body to compose PipelineActions; the base class provides only the execution shell (beforeBuild → body → afterBuild) with try/finally semantics guaranteeing afterBuild runs even on failure.

Constructors

Pipeline()

Properties

allSucceeded → bool
Whether all executed actions succeeded.
no setter
context ↔ PipelineContext
Populated by run; do not access before then.
latefinal
description → String
Short description shown in the interactive selector.
no setter
executedActions → List<PipelineAction>
Actions executed during this run, in execution order.
final
hashCode → int
The hash code for this object.
no setterinherited
help → String
Extended help text printed when the user passes --help.
no setter
lastFailure → PipelineAction?
The last failed action, or null if none failed.
no setter
name → String
Converts the pipeline class name to a snake_case identifier.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterBuild() → Future<void>
Optional cleanup hook; always runs even if body throws.
beforeBuild() → Future<void>
Optional preparation hook. Default no-op.
body() → Future<void>
Main pipeline body. Subclasses compose actions here via runAction.
createContext(List<String> args) → PipelineContext
Builds the PipelineContext for this run, receiving the raw CLI args.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> args) → Future<void>
Entry point. Builds the PipelineContext via createContext, then runs beforeBuild → body → afterBuild.
runAction(PipelineAction action) → Future<void>
Runs action with section logging, timing, and status recording.
runParallelActions(List<PipelineAction> actions) → Future<void>
Runs multiple actions in parallel, recording each one's status.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited