public enum BuildStatus extends Enum<BuildStatus>
Enum Constant and Description |
---|
BROKEN
Represents a build that has failed
|
FIXED
Represents a build that has succeeded after a failed build
|
STILL_BROKEN
Represents a build that has failed after a failed build
|
SUCCESSFUL
Represents a build that has succeeded (if there is a previous build, it has been succeeded too)
|
Modifier and Type | Method and Description |
---|---|
static BuildStatus |
of(hudson.model.AbstractBuild build)
Returns the
BuildStatus that represents the given build. |
String |
tag() |
static BuildStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuildStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuildStatus BROKEN
public static final BuildStatus STILL_BROKEN
public static final BuildStatus FIXED
public static final BuildStatus SUCCESSFUL
public static BuildStatus[] values()
for (BuildStatus c : BuildStatus.values()) System.out.println(c);
public static BuildStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String tag()
public static BuildStatus of(hudson.model.AbstractBuild build)
BuildStatus
that represents the given build. If the given build has a previous build, it
must be finished.build
- the build to analyzeCopyright © 2016–2017. All rights reserved.