hudson.plugins.im.build_notify
Class DefaultBuildToChatNotifier

java.lang.Object
  extended by hudson.plugins.im.build_notify.BuildToChatNotifier
      extended by hudson.plugins.im.build_notify.SummaryOnlyBuildToChatNotifier
          extended by hudson.plugins.im.build_notify.DefaultBuildToChatNotifier
All Implemented Interfaces:
hudson.model.Describable<BuildToChatNotifier>
Direct Known Subclasses:
PrintFailingTestsBuildToChatNotifier

public class DefaultBuildToChatNotifier
extends SummaryOnlyBuildToChatNotifier

BuildToChatNotifier that maintains the traditional behaviour of IMPublisher.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class DefaultBuildToChatNotifier.DescriptorImpl
           
 
Constructor Summary
DefaultBuildToChatNotifier()
           
 
Method Summary
 java.lang.String buildCompletionMessage(IMPublisher publisher, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
          Calculates the message to send out to a chat when the specified build is completed.
 java.lang.String buildStartMessage(IMPublisher publisher, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
          Calculates the message to send out to a chat when the specified build is started.
 
Methods inherited from class hudson.plugins.im.build_notify.BuildToChatNotifier
all, culpritMessage, fixerMessage, getDescriptor, suspectMessage, upstreamCommitterMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildToChatNotifier

@DataBoundConstructor
public DefaultBuildToChatNotifier()
Method Detail

buildStartMessage

public java.lang.String buildStartMessage(IMPublisher publisher,
                                          hudson.model.AbstractBuild<?,?> build,
                                          hudson.model.BuildListener listener)
                                   throws java.io.IOException,
                                          java.lang.InterruptedException
Description copied from class: BuildToChatNotifier
Calculates the message to send out to a chat when the specified build is started.

Overrides:
buildStartMessage in class SummaryOnlyBuildToChatNotifier
Parameters:
publisher - The publisher that's driving this. Never null.
build - The build that just completed. Never null.
listener - Any errors can be reported here.
Throws:
java.io.IOException
java.lang.InterruptedException

buildCompletionMessage

public java.lang.String buildCompletionMessage(IMPublisher publisher,
                                               hudson.model.AbstractBuild<?,?> build,
                                               hudson.model.BuildListener listener)
                                        throws java.io.IOException,
                                               java.lang.InterruptedException
Description copied from class: BuildToChatNotifier
Calculates the message to send out to a chat when the specified build is completed.

Overrides:
buildCompletionMessage in class SummaryOnlyBuildToChatNotifier
Parameters:
publisher - The publisher that's driving this. Never null.
build - The build that just completed. Never null.
listener - Any errors can be reported here.
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2010. All Rights Reserved.