com.chikli.hudson.plugin.naginator
Class NaginatorListener

java.lang.Object
  extended by hudson.model.listeners.RunListener<hudson.model.AbstractBuild<?,?>>
      extended by com.chikli.hudson.plugin.naginator.NaginatorListener
All Implemented Interfaces:
hudson.ExtensionPoint

public class NaginatorListener
extends hudson.model.listeners.RunListener<hudson.model.AbstractBuild<?,?>>

Author:
Nicolas De loof

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
NaginatorListener()
           
 
Method Summary
static int calculateRetryCount(hudson.model.Run<?,?> r)
           
 boolean canSchedule(hudson.model.Run build, NaginatorPublisher naginator)
          Deprecated. use NaginatorScheduleAction.shouldSchedule(Run, TaskListener, int) to control scheduling.
 void onCompleted(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build, int n)
          Deprecated. use NaginatorScheduleAction to make a build rescheduled.
 boolean scheduleMatrixBuild(hudson.model.AbstractBuild<?,?> build, List<hudson.matrix.Combination> combinations, int n)
          Deprecated. use NaginatorScheduleAction to make a build rescheduled.
 hudson.model.Environment setUpEnvironment(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          
 
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

NaginatorListener

public NaginatorListener()
Method Detail

onCompleted

public void onCompleted(hudson.model.AbstractBuild<?,?> build,
                        @Nonnull
                        hudson.model.TaskListener listener)
Overrides:
onCompleted in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild<?,?>>

setUpEnvironment

public hudson.model.Environment setUpEnvironment(hudson.model.AbstractBuild build,
                                                 hudson.Launcher launcher,
                                                 hudson.model.BuildListener listener)
                                          throws IOException,
                                                 InterruptedException,
                                                 hudson.model.Run.RunnerAbortedException

Overrides:
setUpEnvironment in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild<?,?>>
Throws:
IOException
InterruptedException
hudson.model.Run.RunnerAbortedException

canSchedule

@Deprecated
public boolean canSchedule(hudson.model.Run build,
                                      NaginatorPublisher naginator)
Deprecated. use NaginatorScheduleAction.shouldSchedule(Run, TaskListener, int) to control scheduling.


calculateRetryCount

public static int calculateRetryCount(@Nonnull
                                      hudson.model.Run<?,?> r)

scheduleMatrixBuild

@Deprecated
public boolean scheduleMatrixBuild(hudson.model.AbstractBuild<?,?> build,
                                              List<hudson.matrix.Combination> combinations,
                                              int n)
Deprecated. use NaginatorScheduleAction to make a build rescheduled.


scheduleBuild

@Deprecated
public boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build,
                                        int n)
Deprecated. use NaginatorScheduleAction to make a build rescheduled.

Wrapper method for mocking purposes.



Copyright © 2004-2016. All Rights Reserved.