net.praqma.jenkins.plugin.reloaded
Class MatrixReloadedListener

java.lang.Object
  extended by hudson.model.listeners.RunListener<hudson.model.Run>
      extended by net.praqma.jenkins.plugin.reloaded.MatrixReloadedListener
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class MatrixReloadedListener
extends hudson.model.listeners.RunListener<hudson.model.Run>

The onStarted sets the base build of the run.
The onCompleted registers the Actions to the side panel of the matrix project.

Author:
wolfgang

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
MatrixReloadedListener()
           
 
Method Summary
 void onCompleted(hudson.model.Run run, hudson.model.TaskListener listener)
          Add the Matrix Reloaded link to the build context, this will enable matrix reload a previous build from the menu.
This is done for all matrix builds/runs
 void onStarted(hudson.model.Run run, hudson.model.TaskListener listener)
          Determine if the run is matrix reloaded or its parent is.
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onDeleted, onFinalized, register, setUpEnvironment, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixReloadedListener

public MatrixReloadedListener()
Method Detail

onStarted

public void onStarted(hudson.model.Run run,
                      hudson.model.TaskListener listener)
Determine if the run is matrix reloaded or its parent is. Set the base build accordingly.

Overrides:
onStarted in class hudson.model.listeners.RunListener<hudson.model.Run>

onCompleted

public void onCompleted(hudson.model.Run run,
                        hudson.model.TaskListener listener)
Add the Matrix Reloaded link to the build context, this will enable matrix reload a previous build from the menu.
This is done for all matrix builds/runs

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


Copyright © 2004-2014. All Rights Reserved.