ExecutionStatus

Execution Status enumerations used for executions and stages.

Note: we implement CharSequence to allow simple SpEL expressions such as: { #stage('s1').status == 'SUCCEEDED' }

public enum ExecutionStatus implements CharSequence

Constructors

ExecutionStatus
Link copied to clipboard
void ExecutionStatus(boolean complete, boolean halt)

Entries

NOT_STARTED
Link copied to clipboard

The task has yet to start.

NOT_STARTED
RUNNING
Link copied to clipboard

The task is still running and the {@code Task} may be re-executed in order to continue.

RUNNING
PAUSED
Link copied to clipboard

The task is still running and the {@code Task} may be resumed in order to continue.

PAUSED
SUSPENDED
Link copied to clipboard

The task is complete but the pipeline should now be stopped pending a trigger of some kind.

SUSPENDED
SUCCEEDED
Link copied to clipboard

The task executed successfully and the pipeline may now proceed to the next task.

SUCCEEDED
FAILED_CONTINUE
Link copied to clipboard

The task execution failed, but the pipeline may proceed to the next task.

FAILED_CONTINUE
TERMINAL
Link copied to clipboard

The task failed and the failure was terminal. The pipeline will not progress any further.

TERMINAL
CANCELED
Link copied to clipboard

The task was canceled. The pipeline will not progress any further.

CANCELED
REDIRECT
Link copied to clipboard

The step completed but is indicating that a decision path should be followed, not the default path.

REDIRECT
STOPPED
Link copied to clipboard

The task was stopped. The pipeline will not progress any further.

STOPPED
SKIPPED
Link copied to clipboard

The task was skipped and the pipeline will proceed to the next task.

SKIPPED
BUFFERED
Link copied to clipboard

The task is not started and must be transitioned to NOT_STARTED.

BUFFERED

Functions

charAt
Link copied to clipboard
char charAt(int index)
abstract char charAt(int p)
chars
Link copied to clipboard
IntStream chars()
codePoints
Link copied to clipboard
IntStream codePoints()
compare
Link copied to clipboard
static int compare(CharSequence cs1, CharSequence cs2)
isComplete
Link copied to clipboard

Indicates that the task/stage/pipeline has finished its work (successfully or not).

final boolean isComplete()
isFailure
Link copied to clipboard
boolean isFailure()
isHalt
Link copied to clipboard

Indicates an abnormal completion so nothing downstream should run afterward.

final boolean isHalt()
isSuccessful
Link copied to clipboard
boolean isSuccessful()
length
Link copied to clipboard
int length()
abstract int length()
subSequence
Link copied to clipboard
CharSequence subSequence(int start, int end)
abstract CharSequence subSequence(int p, int p1)
toString
Link copied to clipboard
abstract String toString()

Properties

COMPLETED
Link copied to clipboard
public final static Collection<ExecutionStatusCOMPLETED