hudson.plugins.ircbot
Class IrcPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by hudson.plugins.im.IMPublisher
                  extended by hudson.plugins.ircbot.IrcPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.matrix.MatrixAggregatable, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class IrcPublisher
extends hudson.plugins.im.IMPublisher

Publishes build results to IRC channels.

Version:
$Id: IrcPublisher.java 39378 2011-04-25 17:04:03Z kutzi $
Author:
bruyeron, $Author: kutzi $ (last change)

Nested Class Summary
static class IrcPublisher.DescriptorImpl
          Descriptor for IrcPublisher
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.util.List<java.lang.String> channels
          Deprecated. only used to deserialize old instances. please use IMPublisher.getNotificationTargets()
static IrcPublisher.DescriptorImpl DESCRIPTOR
          Descriptor should be singleton.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
IrcPublisher(java.util.List<hudson.plugins.im.IMMessageTarget> defaultTargets, java.lang.String notificationStrategy, boolean notifyGroupChatsOnBuildStart, boolean notifySuspects, boolean notifyCulprits, boolean notifyFixers, boolean notifyUpstreamCommitters, hudson.plugins.im.build_notify.BuildToChatNotifier buildToChatNotifier, hudson.plugins.im.MatrixJobMultiplier matrixMultiplier)
           
 
Method Summary
protected  java.lang.String getConfiguredIMId(hudson.model.User user)
           
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
           
protected  hudson.plugins.im.IMConnection getIMConnection()
           
protected  java.lang.String getPluginName()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
protected  java.lang.Object readResolve()
           
 
Methods inherited from class hudson.plugins.im.IMPublisher
calculateTargets, createAggregator, getBuildToChatNotifier, getIMDescriptor, getMatrixNotifier, getNotificationStrategy, getNotificationTargets, getNotifyCulprits, getNotifyFixers, getNotifyOnStart, getNotifySuspects, getNotifyUpstreamCommitters, getStrategy, getTargets, isMatrixProject, log, needsToRunAfterFinalized, perform, prebuild, setMatrixNotifier, setNotificationStrategy, setNotificationTargets, setTargets
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
 
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
 

Field Detail

DESCRIPTOR

@Extension
public static final IrcPublisher.DescriptorImpl DESCRIPTOR
Descriptor should be singleton.


channels

@Deprecated
public java.util.List<java.lang.String> channels
Deprecated. only used to deserialize old instances. please use IMPublisher.getNotificationTargets()
channels to notify with build status If not empty, this replaces the main channels defined at the descriptor level.

Constructor Detail

IrcPublisher

public IrcPublisher(java.util.List<hudson.plugins.im.IMMessageTarget> defaultTargets,
                    java.lang.String notificationStrategy,
                    boolean notifyGroupChatsOnBuildStart,
                    boolean notifySuspects,
                    boolean notifyCulprits,
                    boolean notifyFixers,
                    boolean notifyUpstreamCommitters,
                    hudson.plugins.im.build_notify.BuildToChatNotifier buildToChatNotifier,
                    hudson.plugins.im.MatrixJobMultiplier matrixMultiplier)
Method Detail

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep
Overrides:
getRequiredMonitorService in class hudson.plugins.im.IMPublisher

getDescriptor

public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.plugins.im.IMPublisher
See Also:
Describable.getDescriptor()

getConfiguredIMId

protected java.lang.String getConfiguredIMId(hudson.model.User user)
Specified by:
getConfiguredIMId in class hudson.plugins.im.IMPublisher

getIMConnection

protected hudson.plugins.im.IMConnection getIMConnection()
                                                  throws hudson.plugins.im.IMException
Specified by:
getIMConnection in class hudson.plugins.im.IMPublisher
Throws:
hudson.plugins.im.IMException

getPluginName

protected java.lang.String getPluginName()
Specified by:
getPluginName in class hudson.plugins.im.IMPublisher

readResolve

protected java.lang.Object readResolve()
Overrides:
readResolve in class hudson.plugins.im.IMPublisher


Copyright © 2011. All Rights Reserved.