Enum GenericStatus
- java.lang.Object
-
- java.lang.Enum<GenericStatus>
-
- org.jenkinsci.plugins.workflow.pipelinegraphanalysis.GenericStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<GenericStatus>
public enum GenericStatus extends Enum<GenericStatus>
Statuses of aFlowChunk
in increasing priority order Note, when adding new statuses you need to add a newStatusAndTiming.StatusApiVersion
and set the value ofStatusAndTiming.CURRENT_API_VERSION
to that, and updateStatusAndTiming.coerceStatusMap(Map)
to do coercion for new codings to protect core APIs from unknown values
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
Aborted while running, no way to determine final outcomeResult.ABORTED
FAILURE
Completed and explicitly failed, i.e.IN_PROGRESS
Not complete: still executing, waiting for a resultNOT_EXECUTED
We resumed from checkpoint orResult.NOT_BUILT
status - nothing ran in the chunk.PAUSED_PENDING_INPUT
Not complete: we are waiting for user input to continue (special case of IN_PROGRESS)QUEUED
Not complete: still executing, in a node block, but the node block is in queue.SUCCESS
Completed & successful, exResult.SUCCESS
UNSTABLE
Completed with recoverable failures, such as noncritical tests, exResult.UNSTABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenericStatus
fromResult(Result result)
Create aGenericStatus
from aResult
static GenericStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static GenericStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_EXECUTED
public static final GenericStatus NOT_EXECUTED
We resumed from checkpoint orResult.NOT_BUILT
status - nothing ran in the chunk.
-
SUCCESS
public static final GenericStatus SUCCESS
Completed & successful, exResult.SUCCESS
-
UNSTABLE
public static final GenericStatus UNSTABLE
Completed with recoverable failures, such as noncritical tests, exResult.UNSTABLE
-
QUEUED
public static final GenericStatus QUEUED
Not complete: still executing, in a node block, but the node block is in queue.
-
IN_PROGRESS
public static final GenericStatus IN_PROGRESS
Not complete: still executing, waiting for a result
-
FAILURE
public static final GenericStatus FAILURE
Completed and explicitly failed, i.e.Result.FAILURE
-
ABORTED
public static final GenericStatus ABORTED
Aborted while running, no way to determine final outcomeResult.ABORTED
-
PAUSED_PENDING_INPUT
public static final GenericStatus PAUSED_PENDING_INPUT
Not complete: we are waiting for user input to continue (special case of IN_PROGRESS)
-
-
Method Detail
-
values
public static GenericStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GenericStatus c : GenericStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenericStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromResult
public static GenericStatus fromResult(Result result)
Create aGenericStatus
from aResult
-
-