com.flowdock.jenkins
Class FlowdockNotifier

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by com.flowdock.jenkins.FlowdockNotifier
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class FlowdockNotifier
extends hudson.tasks.Notifier


Nested Class Summary
static class FlowdockNotifier.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
FlowdockNotifier(String flowToken, String notificationTags, Boolean chatNotification, Boolean notifySuccess, Boolean notifyFailure, Boolean notifyUnstable, Boolean notifyAborted, Boolean notifyNotBuilt)
           
 
Method Summary
 FlowdockNotifier.DescriptorImpl getDescriptor()
           
 String getFlowToken()
           
 String getNotificationTags()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean needsToRunAfterFinalized()
           
protected  void notifyFlowdock(hudson.model.AbstractBuild build, hudson.model.BuildListener listener)
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 boolean shouldNotify(hudson.model.Result buildResult)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, 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

FlowdockNotifier

@DataBoundConstructor
public FlowdockNotifier(String flowToken,
                                             String notificationTags,
                                             Boolean chatNotification,
                                             Boolean notifySuccess,
                                             Boolean notifyFailure,
                                             Boolean notifyUnstable,
                                             Boolean notifyAborted,
                                             Boolean notifyNotBuilt)
Method Detail

getFlowToken

public String getFlowToken()

getNotificationTags

public String getNotificationTags()

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

needsToRunAfterFinalized

public boolean needsToRunAfterFinalized()
Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher

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

shouldNotify

public boolean shouldNotify(hudson.model.Result buildResult)

notifyFlowdock

protected void notifyFlowdock(hudson.model.AbstractBuild build,
                              hudson.model.BuildListener listener)

getDescriptor

public FlowdockNotifier.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Notifier


Copyright © 2004-2012. All Rights Reserved.