Package hudson.model
Enum Class ResultTrend
- All Implemented Interfaces:
Serializable
,Comparable<ResultTrend>
,Constable
Describes an
Result
trend by taking the comparing the result of the current and the previous build.- Since:
- 1.416
- Author:
- kutzi
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBuild was aborted.Previous build (if there is one) wasResult.SUCCESS
orResult.UNSTABLE
and current build isResult.FAILURE
.Build didn't run (yet).Previous build wasResult.FAILURE
and is now 'only'Result.UNSTABLE
.Build as well as previous build areResult.FAILURE
.Build as well as previous build areResult.UNSTABLE
.Build as well as previous build (if it has a previous build) areResult.SUCCESS
Previous build (if there is one) wasResult.SUCCESS
and current build isResult.UNSTABLE
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a short human-readable description of the result.getID()
Gets all upper case ID like token of the build status.static ResultTrend
getResultTrend
(AbstractBuild<?, ?> build) Returns the result trend of a build.static ResultTrend
getResultTrend
(Run<?, ?> run) Returns the result trend of a run.static ResultTrend
Returns the enum constant of this class with the specified name.static ResultTrend[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED
-
SUCCESS
Build as well as previous build (if it has a previous build) areResult.SUCCESS
-
NOW_UNSTABLE
Previous build wasResult.FAILURE
and is now 'only'Result.UNSTABLE
. -
STILL_UNSTABLE
Build as well as previous build areResult.UNSTABLE
. -
UNSTABLE
Previous build (if there is one) wasResult.SUCCESS
and current build isResult.UNSTABLE
. -
STILL_FAILING
Build as well as previous build areResult.FAILURE
. -
FAILURE
Previous build (if there is one) wasResult.SUCCESS
orResult.UNSTABLE
and current build isResult.FAILURE
. -
ABORTED
Build was aborted. -
NOT_BUILT
Build didn't run (yet).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
Returns a short human-readable description of the result. -
getID
Gets all upper case ID like token of the build status. -
getResultTrend
Returns the result trend of a build.- Parameters:
build
- the build- Returns:
- the result trend
-
getResultTrend
Returns the result trend of a run.- Parameters:
run
- the run- Returns:
- the result trend
- Since:
- 1.441
-