com.chikli.hudson.plugin.naginator
Class NaginatorPublisherScheduleAction

java.lang.Object
  extended by hudson.model.InvisibleAction
      extended by com.chikli.hudson.plugin.naginator.NaginatorScheduleAction
          extended by com.chikli.hudson.plugin.naginator.NaginatorPublisherScheduleAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class NaginatorPublisherScheduleAction
extends NaginatorScheduleAction

Used from NaginatorPublisher to mark a build to be reshceduled.

Since:
1.16

Constructor Summary
NaginatorPublisherScheduleAction(NaginatorPublisher publisher)
           
 
Method Summary
 NoChildStrategy getNoChildStrategy()
           
 RegexpForMatrixStrategy getRegexpForMatrixStrategy()
           
 String getRegexpForRerun()
           
 boolean isCheckRegexp()
           
 boolean isRegexpForMatrixParent()
          Deprecated. use getRegexpForMatrixStrategy()
 boolean isRerunIfUnstable()
           
 Object readResolve()
           
 boolean shouldSchedule(hudson.model.Run<?,?> run, hudson.model.TaskListener listener, int retryCount)
          Tests whether NaginatorListener should reschedule the build.
 boolean shouldScheduleForMatrixRun(hudson.matrix.MatrixRun run, hudson.model.TaskListener listener)
          A test for each child builds of multi-configuration builds.
 
Methods inherited from class com.chikli.hudson.plugin.naginator.NaginatorScheduleAction
getDelay, getMaxSchedule, isRerunMatrixPart
 
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaginatorPublisherScheduleAction

public NaginatorPublisherScheduleAction(NaginatorPublisher publisher)
Method Detail

readResolve

public Object readResolve()

getRegexpForRerun

@CheckForNull
public String getRegexpForRerun()

isRerunIfUnstable

public boolean isRerunIfUnstable()

isCheckRegexp

public boolean isCheckRegexp()

isRegexpForMatrixParent

@Deprecated
public boolean isRegexpForMatrixParent()
Deprecated. use getRegexpForMatrixStrategy()


getRegexpForMatrixStrategy

@Nonnull
public RegexpForMatrixStrategy getRegexpForMatrixStrategy()
Since:
1.17

shouldSchedule

public boolean shouldSchedule(@Nonnull
                              hudson.model.Run<?,?> run,
                              @Nonnull
                              hudson.model.TaskListener listener,
                              int retryCount)
Description copied from class: NaginatorScheduleAction
Tests whether NaginatorListener should reschedule the build. You can override this method to reschedule the build conditionally. retryCount is passed with 0 when this is the first time to reschedule the build.

Overrides:
shouldSchedule in class NaginatorScheduleAction
Parameters:
run - a build to test. never be a MatrixRun
listener - The listener for this build. This can be used to produce log messages, for example, which becomes a part of the "console output" of this build. But when this method runs, the build is considered completed, so its status cannot be changed anymore.
retryCount - the count the build is rescheduled.
Returns:
whether to reschedule the build.

shouldScheduleForMatrixRun

public boolean shouldScheduleForMatrixRun(@Nonnull
                                          hudson.matrix.MatrixRun run,
                                          @Nonnull
                                          hudson.model.TaskListener listener)
Description copied from class: NaginatorScheduleAction
A test for each child builds of multi-configuration builds. You can filter child builds to reschedule.

Overrides:
shouldScheduleForMatrixRun in class NaginatorScheduleAction
Returns:

getNoChildStrategy

@Nonnull
public NoChildStrategy getNoChildStrategy()
Overrides:
getNoChildStrategy in class NaginatorScheduleAction
Returns:
how to do when no children to rerun for a matrix project.


Copyright © 2004-2016. All Rights Reserved.