|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.InvisibleAction
com.chikli.hudson.plugin.naginator.NaginatorScheduleAction
public class NaginatorScheduleAction
Action to mark a build to be rescheduled by NaginatorListener.
Be aware that you have to add this action to the parent build
if the build is the child of another build (e.g. multi-configuration projects).
| Constructor Summary | |
|---|---|
NaginatorScheduleAction()
Should always reschedule the build. |
|
NaginatorScheduleAction(int maxSchedule)
Should reschedule the build for specified times. |
|
NaginatorScheduleAction(int maxSchedule,
ScheduleDelay delay,
boolean rerunMatrixPart)
Should reschedule the build for specified times. |
|
| Method Summary | |
|---|---|
ScheduleDelay |
getDelay()
|
int |
getMaxSchedule()
The max times to reschedule the build. |
boolean |
isRerunMatrixPart()
|
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 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 |
|---|
public NaginatorScheduleAction()
public NaginatorScheduleAction(int maxSchedule)
maxSchedule - max times to reschedule the build. Less or equal to 0 indicates "always".
public NaginatorScheduleAction(int maxSchedule,
@CheckForNull
ScheduleDelay delay,
boolean rerunMatrixPart)
maxSchedule - max times to reschedule the build. Less or equal to 0 indicates "always".delay - A scheduling policy to trigger a new build.rerunMatrixPart - tests matrix child builds and triggers only failed parts.| Method Detail |
|---|
public int getMaxSchedule()
@Nonnull public ScheduleDelay getDelay()
public boolean isRerunMatrixPart()
public boolean shouldSchedule(@Nonnull
hudson.model.Run<?,?> run,
@Nonnull
hudson.model.TaskListener listener,
int retryCount)
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.
run - a build to test. never be a MatrixRunlistener - 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.
public boolean shouldScheduleForMatrixRun(@Nonnull
hudson.matrix.MatrixRun run,
@Nonnull
hudson.model.TaskListener listener)
run -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||