Package hudson.model
Class Result
java.lang.Object
hudson.model.Result
- All Implemented Interfaces:
Serializable
,org.kohsuke.stapler.export.CustomExportedBean
public final class Result
extends Object
implements Serializable, org.kohsuke.stapler.export.CustomExportedBean
The build outcome.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Result
The build was manually aborted.final BallColor
Default ball color for this status.final boolean
Is this a complete build - i.e.static final com.thoughtworks.xstream.converters.SingleValueConverter
static final Result
The build had a fatal error.static final Result
The module was not built.final int
Bigger numbers are worse.static final Result
The build had no errors.static final Result
The build had some errors but they were not fatal. -
Method Summary
Modifier and TypeMethodDescriptionCombines twoResult
s and returns the worse one.static Result
Combines twoResult
s and returns the worse one.static Result
fromString
(String s) static void
init()
boolean
isBetterOrEqualTo
(Result that) boolean
isBetterThan
(Result that) boolean
Is this a complete build - i.e.boolean
isWorseOrEqualTo
(Result that) boolean
isWorseThan
(Result that) toString()
-
Field Details
-
SUCCESS
The build had no errors. -
UNSTABLE
The build had some errors but they were not fatal. For example, some tests failed. -
FAILURE
The build had a fatal error. -
NOT_BUILT
The module was not built.This status code is used in a multi-stage build (like maven2) where a problem in earlier stage prevented later stages from building.
-
ABORTED
The build was manually aborted. If you are catchingInterruptedException
and interpreting it asABORTED
, you should checkExecutor.abortResult()
instead (starting 1.417.) -
ordinal
public final int ordinalBigger numbers are worse. -
color
Default ball color for this status. -
completeBuild
public final boolean completeBuildIs this a complete build - i.e. did it run to the end (not aborted)?- Since:
- 1.526
-
conv
public static final com.thoughtworks.xstream.converters.SingleValueConverter conv
-
-
Method Details
-
combine
Combines twoResult
s and returns the worse one. -
combine
Combines twoResult
s and returns the worse one.This method is null-safe (any
Result
is "worse" thannull
, andnull
is returned if both parameters arenull
).- Parameters:
r1
- a result (may benull
)r2
- a result (may benull
)- Returns:
- the worst result (may be
null
) - Since:
- 2.257
-
isWorseThan
-
isWorseOrEqualTo
-
isBetterThan
-
isBetterOrEqualTo
-
isCompleteBuild
public boolean isCompleteBuild()Is this a complete build - i.e. did it run to the end (not aborted)?- Since:
- 1.526
-
toString
-
toExportedObject
- Specified by:
toExportedObject
in interfaceorg.kohsuke.stapler.export.CustomExportedBean
-
fromString
-
init
-