hudson.model
Class Result

java.lang.Object
  extended by 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:
Serialized Form

Nested Class Summary
static class Result.OptionHandlerImpl
           
 
Field Summary
static Result ABORTED
          The build was manually aborted.
 BallColor color
          Default ball color for this status.
static com.thoughtworks.xstream.converters.SingleValueConverter conv
           
static Result FAILURE
          The build had a fatal error.
static Result NOT_BUILT
          The module was not built.
 int ordinal
          Bigger numbers are worse.
static Result SUCCESS
          The build had no errors.
static Result UNSTABLE
          The build had some errors but they were not fatal.
 
Method Summary
 Result combine(Result that)
          Combines two Results and returns the worse one.
static Result fromString(String s)
           
 boolean isBetterOrEqualTo(Result that)
           
 boolean isBetterThan(Result that)
           
 boolean isWorseOrEqualTo(Result that)
           
 boolean isWorseThan(Result that)
           
 String toExportedObject()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUCCESS

public static final Result SUCCESS
The build had no errors.


UNSTABLE

public static final Result UNSTABLE
The build had some errors but they were not fatal. For example, some tests failed.


FAILURE

public static final Result FAILURE
The build had a fatal error.


NOT_BUILT

public static final Result 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

public static final Result ABORTED
The build was manually aborted. If you are catching InterruptedException and interpreting it as ABORTED, you should check Executor.abortResult() instead (starting 1.417.)


ordinal

public final int ordinal
Bigger numbers are worse.


color

public final BallColor color
Default ball color for this status.


conv

public static final com.thoughtworks.xstream.converters.SingleValueConverter conv
Method Detail

combine

public Result combine(Result that)
Combines two Results and returns the worse one.


isWorseThan

public boolean isWorseThan(Result that)

isWorseOrEqualTo

public boolean isWorseOrEqualTo(Result that)

isBetterThan

public boolean isBetterThan(Result that)

isBetterOrEqualTo

public boolean isBetterOrEqualTo(Result that)

toString

public String toString()
Overrides:
toString in class Object

toExportedObject

public String toExportedObject()
Specified by:
toExportedObject in interface org.kohsuke.stapler.export.CustomExportedBean

fromString

public static Result fromString(String s)


Copyright © 2004-2013. All Rights Reserved.