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

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

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
 
Constructor Summary
DownstreamBuildViewRunListener()
          Extension needs parameterless constructor.
 
Method Summary
 void onFinalized(hudson.model.AbstractBuild r)
           Adds DownstreamBuildViewAction to the build.
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onCompleted, onDeleted, 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

onFinalized

public void onFinalized(hudson.model.AbstractBuild r)
Adds DownstreamBuildViewAction to the build. Do this in onFinalized, so the XML-data of the build is not affected.

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


Copyright © 2009 Ushus Technologies. All Rights Reserved.