public enum NotificationStrategy extends Enum<NotificationStrategy>
| Enum Constant and Description |
|---|
ALL
Not matter what, notifications sould always be sent.
|
ANY_FAILURE
Whenever there is a failure, a Notification should be sent.
|
STATECHANGE_ONLY
Notifications should be sent only if there was a change in the build state, or this was the first build.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
notificationWanted(hudson.model.AbstractBuild<?,?> build)
Signals if the given build qualifies to send a notification according to the current strategy.
|
static NotificationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationStrategy STATECHANGE_ONLY
public static final NotificationStrategy ALL
public static final NotificationStrategy ANY_FAILURE
public static NotificationStrategy[] values()
for (NotificationStrategy c : NotificationStrategy.values()) System.out.println(c);
public static NotificationStrategy 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 boolean notificationWanted(hudson.model.AbstractBuild<?,?> build)
build - The build for which it should be decided, if notification is wanted or not.Copyright © 2004-2013. All Rights Reserved.