hudson.plugins.growl
Class GrowlPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by 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 Class Summary
static class GrowlPublisher.DescriptorImpl
           
 
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
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
GrowlPublisher(String IP, String onlyOnFailureOrRecovery)
           
 
Method Summary
 String getIP()
           
 Boolean getOnlyOnFailureOrRecovery()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
protected  boolean isFailureOrRecovery(hudson.model.AbstractBuild<?,?> build)
          Determine if this build represents a failure or recovery.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
protected  boolean shouldGrowl(hudson.model.AbstractBuild<?,?> build)
          Determine if this build results should be growled.
 
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
 

Constructor Detail

GrowlPublisher

@DataBoundConstructor
public GrowlPublisher(String IP,
                                           String onlyOnFailureOrRecovery)
Method Detail

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.