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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResultThe build was manually aborted.final BallColorDefault ball color for this status.final booleanIs this a complete build - i.e.static final com.thoughtworks.xstream.converters.SingleValueConverterstatic final ResultThe build had a fatal error.static final ResultThe module was not built.final intBigger numbers are worse.static final ResultThe build had no errors.static final ResultThe build had some errors but they were not fatal. -
Method Summary
Modifier and TypeMethodDescriptionCombines twoResults and returns the worse one.static ResultCombines twoResults and returns the worse one.static ResultfromString(String s) static voidinit()booleanisBetterOrEqualTo(Result that) booleanisBetterThan(Result that) booleanIs this a complete build - i.e.booleanisWorseOrEqualTo(Result that) booleanisWorseThan(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 catchingInterruptedExceptionand 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 twoResults and returns the worse one. -
combine
Combines twoResults and returns the worse one.This method is null-safe (any
Resultis "worse" thannull, andnullis 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:
toExportedObjectin interfaceorg.kohsuke.stapler.export.CustomExportedBean
-
fromString
-
init
-