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, String chatNotification, String notifySuccess, String notifyFailure, String notifyFixed, String notifyUnstable, String notifyAborted, String notifyNotBuilt)
           
 
Method Summary
 boolean getChatNotification()
           
 FlowdockNotifier.DescriptorImpl getDescriptor()
           
 String getFlowToken()
           
 String getNotificationTags()
           
 boolean getNotifyAborted()
           
 boolean getNotifyFailure()
           
 boolean getNotifyFixed()
           
 boolean getNotifyNotBuilt()
           
 boolean getNotifySuccess()
           
 boolean getNotifyUnstable()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean needsToRunAfterFinalized()
           
protected  void notifyFlowdock(hudson.model.AbstractBuild build, BuildResult buildResult, hudson.model.BuildListener listener)
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 boolean shouldNotify(BuildResult 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,
                                             String chatNotification,
                                             String notifySuccess,
                                             String notifyFailure,
                                             String notifyFixed,
                                             String notifyUnstable,
                                             String notifyAborted,
                                             String notifyNotBuilt)
Method Detail

getFlowToken

public String getFlowToken()

getNotificationTags

public String getNotificationTags()

getChatNotification

public boolean getChatNotification()

getNotifySuccess

public boolean getNotifySuccess()

getNotifyFailure

public boolean getNotifyFailure()

getNotifyFixed

public boolean getNotifyFixed()

getNotifyUnstable

public boolean getNotifyUnstable()

getNotifyAborted

public boolean getNotifyAborted()

getNotifyNotBuilt

public boolean getNotifyNotBuilt()

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(BuildResult buildResult)

notifyFlowdock

protected void notifyFlowdock(hudson.model.AbstractBuild build,
                              BuildResult buildResult,
                              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-2013. All Rights Reserved.