-
- All Implemented Interfaces:
-
java.lang.CharSequence
public enum ExecutionStatus implements CharSequence
Execution Status enumerations used for executions and stages.
Note: we implement CharSequence to allow simple SpEL expressions such as: { #stage('s1').status == 'SUCCEEDED' }
-
-
Field Summary
Fields Modifier and Type Field Description public final static Collection<ExecutionStatus>COMPLETED
-
Constructor Summary
Constructors Constructor Description ExecutionStatus(boolean complete, boolean halt)
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_STARTEDThe task has yet to start.
RUNNINGThe task is still running and the
{@code Task}may be re-executed in order to continue.PAUSEDThe task is still running and the
{@code Task}may be resumed in order to continue.SUSPENDEDThe task is complete but the pipeline should now be stopped pending a trigger of some kind.
SUCCEEDEDThe task executed successfully and the pipeline may now proceed to the next task.
FAILED_CONTINUEThe task execution failed, but the pipeline may proceed to the next task.
TERMINALThe task failed and the failure was terminal. The pipeline will not progress any further.
CANCELEDThe task was canceled. The pipeline will not progress any further.
REDIRECTThe step completed but is indicating that a decision path should be followed, not the default path.
STOPPEDThe task was stopped. The pipeline will not progress any further.
SKIPPEDThe task was skipped and the pipeline will proceed to the next task.
BUFFEREDThe task is not started and must be transitioned to NOT_STARTED.
-
Method Summary
Modifier and Type Method Description final booleanisComplete()Indicates that the task/stage/pipeline has finished its work (successfully or not). final booleanisHalt()Indicates an abnormal completion so nothing downstream should run afterward. booleanisSuccessful()booleanisFailure()intlength()charcharAt(int index)CharSequencesubSequence(int start, int end)-
-
Method Detail
-
isComplete
final boolean isComplete()
Indicates that the task/stage/pipeline has finished its work (successfully or not).
-
isHalt
final boolean isHalt()
Indicates an abnormal completion so nothing downstream should run afterward.
-
isSuccessful
boolean isSuccessful()
-
isFailure
boolean isFailure()
-
length
int length()
-
charAt
char charAt(int index)
-
subSequence
CharSequence subSequence(int start, int end)
-
-
-
-