public enum NotificationType extends Enum<NotificationType>
Enum Constant and Description |
---|
ABORTED |
BACK_TO_NORMAL |
FAILURE |
NOT_BUILT |
STARTED |
SUCCESS |
UNSTABLE |
Modifier and Type | Method and Description |
---|---|
static NotificationType |
fromResults(hudson.model.Result previousResult,
hudson.model.Result result) |
Notification |
getNotification(NotificationConfig config,
hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener buildListener) |
abstract String |
getStatus() |
boolean |
isStartType() |
static NotificationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationType STARTED
public static final NotificationType ABORTED
public static final NotificationType SUCCESS
public static final NotificationType FAILURE
public static final NotificationType NOT_BUILT
public static final NotificationType BACK_TO_NORMAL
public static final NotificationType UNSTABLE
public static NotificationType[] values()
for (NotificationType c : NotificationType.values()) System.out.println(c);
public static NotificationType 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 abstract String getStatus()
public boolean isStartType()
public final Notification getNotification(NotificationConfig config, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener buildListener) throws NotificationException
NotificationException
public static final NotificationType fromResults(hudson.model.Result previousResult, hudson.model.Result result)
Copyright © 2016–2018. All rights reserved.