org.jvnet.hudson.plugins
Class DownstreamBuildViewRunListener

java.lang.Object
  extended by hudson.model.listeners.RunListener<hudson.model.AbstractBuild>
      extended by org.jvnet.hudson.plugins.DownstreamBuildViewRunListener
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Saveable

@Extension
public final class DownstreamBuildViewRunListener
extends hudson.model.listeners.RunListener<hudson.model.AbstractBuild>
implements hudson.model.Saveable

This listener adds a DownstreamBuildViewAction to every new build.

Author:
Shinod.Mohandas

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
DownstreamBuildViewRunListener()
          Extension needs parameterless constructor.
 
Method Summary
 void onCompleted(hudson.model.AbstractBuild r, hudson.model.TaskListener listener)
           Adds DownstreamBuildViewAction to the build.
 void save()
           
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onDeleted, onFinalized, onStarted, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownstreamBuildViewRunListener

public DownstreamBuildViewRunListener()
Extension needs parameterless constructor.

Method Detail

onCompleted

public void onCompleted(hudson.model.AbstractBuild r,
                        hudson.model.TaskListener listener)
Adds DownstreamBuildViewAction to the build. Do this in onCompleted affected.

Overrides:
onCompleted in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild>

save

public void save()
Specified by:
save in interface hudson.model.Saveable


Copyright © 2010 Ushus Technologies. All Rights Reserved.