add

Adds a new stage to the graph. By default the new stage is not dependent on any others. Use connect to make it depend on other stages or have other stages depend on it.

Return

the newly created stage.

Parameters

init

builder for setting up the stage. You do not need to configure , getParentStageId , or getRefId as this method will do that automatically.

@Nonnull()
abstract StageExecution add(Consumer<StageExecutioninit)

Adds a new stage to the graph. By default the new stage is not dependent on any others. Use connect to make it depend on other stages or have other stages depend on it.

abstract void add(StageExecution stage)