hudson.plugins.growl
Class GrowlPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.growl.GrowlPublisher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class GrowlPublisher
- extends hudson.tasks.Notifier
- Author:
- srb55
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.tasks.Notifier |
getDescriptor |
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, getProjectActions, prebuild |
GrowlPublisher
@DataBoundConstructor
public GrowlPublisher(String IP,
String onlyOnFailureOrRecovery)
getIP
public String getIP()
getOnlyOnFailureOrRecovery
public Boolean getOnlyOnFailureOrRecovery()
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
shouldGrowl
protected boolean shouldGrowl(hudson.model.AbstractBuild<?,?> build)
- Determine if this build results should be growled. Uses the local
settings if they are provided, otherwise the global settings.
- Parameters:
build - the Build object
- Returns:
- true if we should growl this build result
isFailureOrRecovery
protected boolean isFailureOrRecovery(hudson.model.AbstractBuild<?,?> build)
- Determine if this build represents a failure or recovery. A build failure
includes both failed and unstable builds. A recovery is defined as a
successful build that follows a build that was not successful. Always
returns false for aborted builds.
- Parameters:
build - the Build object
- Returns:
- true if this build represents a recovery or failure
Copyright © 2004-2011. All Rights Reserved.