public class DeployListener extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
DeployListener() |
| Modifier and Type | Method and Description |
|---|---|
static void |
notifyFailure(DeployEvent event)
|
static <S extends DeployHost<S,T>,T extends DeployTarget<T>> |
notifyFailure(DeployHost<S,T> host,
DeployTarget<T> target,
DeployEvent event)
Notifies all the listeners of a failed deployment.
|
static void |
notifySuccess(DeployEvent event)
|
static <S extends DeployHost<S,T>,T extends DeployTarget<T>> |
notifySuccess(DeployHost<S,T> host,
DeployTarget<T> target,
DeployEvent event)
Notifies all the listeners of a successful deployment.
|
void |
onFailure(DeployEvent event)
Deprecated.
preference is to override
onFailure(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent) instead |
<S extends DeployHost<S,T>,T extends DeployTarget<T>> |
onFailure(DeployHost<S,T> host,
DeployTarget<T> target,
DeployEvent event)
Called for each failed deployment event.
|
void |
onSuccess(DeployEvent event)
Deprecated.
preference is to override
onSuccess(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent) instead |
<S extends DeployHost<S,T>,T extends DeployTarget<T>> |
onSuccess(DeployHost<S,T> host,
DeployTarget<T> target,
DeployEvent event)
Called for each successful deployment event.
|
@Deprecated public void onSuccess(DeployEvent event)
onSuccess(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent) insteadevent - the successful deployment details.public <S extends DeployHost<S,T>,T extends DeployTarget<T>> void onSuccess(@CheckForNull DeployHost<S,T> host, @CheckForNull DeployTarget<T> target, @NonNull DeployEvent event)
host - the host that the deployment was for (or null if the information is not available).target - the target of the deployment (or null if the information is not available).event - the successful deployment details.@Deprecated public void onFailure(DeployEvent event)
onFailure(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent) insteadevent - the failed deployment details.public <S extends DeployHost<S,T>,T extends DeployTarget<T>> void onFailure(@CheckForNull DeployHost<S,T> host, @CheckForNull DeployTarget<T> target, @NonNull DeployEvent event)
host - the host that the deployment was for (or null if the information is not available).target - the target of the deployment (or null if the information is not available).event - the failed deployment details.@Deprecated public static void notifySuccess(DeployEvent event)
notifySuccess(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent)event - the deployment details.public static <S extends DeployHost<S,T>,T extends DeployTarget<T>> void notifySuccess(@CheckForNull DeployHost<S,T> host, @CheckForNull DeployTarget<T> target, @NonNull DeployEvent event)
host - the host that the deployment was for (or null if the information is not available).target - the target of the deployment (or null if the information is not available).event - the deployment details.@Deprecated public static void notifyFailure(DeployEvent event)
notifyFailure(com.cloudbees.plugins.deployer.hosts.DeployHost,
com.cloudbees.plugins.deployer.targets.DeployTarget, DeployEvent)event - the deployment details.public static <S extends DeployHost<S,T>,T extends DeployTarget<T>> void notifyFailure(@CheckForNull DeployHost<S,T> host, @CheckForNull DeployTarget<T> target, @NonNull DeployEvent event)
host - the host that the deployment was for (or null if the information is not available).target - the target of the deployment (or null if the information is not available).event - the deployment details.Copyright © 2016–2022. All rights reserved.