org.jvnet.hudson.plugins
Class DownstreamBuildViewUpdateListener

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

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

This listener Updtes all build number 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
DownstreamBuildViewUpdateListener()
          Extension needs parameterless constructor.
 
Method Summary
 void onStarted(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, onCompleted, onDeleted, onFinalized, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownstreamBuildViewUpdateListener

public DownstreamBuildViewUpdateListener()
Extension needs parameterless constructor.

Method Detail

onStarted

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

Overrides:
onStarted 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.