public class NaginatorPublisherScheduleAction extends NaginatorScheduleAction
NaginatorPublisher to mark a build to be reshceduled.| Constructor and Description |
|---|
NaginatorPublisherScheduleAction(NaginatorPublisher publisher) |
| Modifier and Type | Method and Description |
|---|---|
NoChildStrategy |
getNoChildStrategy() |
RegexpForMatrixStrategy |
getRegexpForMatrixStrategy() |
String |
getRegexpForRerun() |
boolean |
isCheckRegexp() |
boolean |
isRegexpForMatrixParent()
Deprecated.
|
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.
|
getDelay, getMaxSchedule, isRerunMatrixPartpublic NaginatorPublisherScheduleAction(NaginatorPublisher publisher)
public Object readResolve()
@CheckForNull public String getRegexpForRerun()
public boolean isRerunIfUnstable()
public boolean isCheckRegexp()
@Deprecated public boolean isRegexpForMatrixParent()
getRegexpForMatrixStrategy()@Nonnull public RegexpForMatrixStrategy getRegexpForMatrixStrategy()
public boolean shouldSchedule(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.model.TaskListener listener, int retryCount)
NaginatorScheduleActionNaginatorListener 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.shouldSchedule in class NaginatorScheduleActionrun - 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)
NaginatorScheduleActionshouldScheduleForMatrixRun in class NaginatorScheduleAction@Nonnull public NoChildStrategy getNoChildStrategy()
getNoChildStrategy in class NaginatorScheduleActionCopyright © 2016–2019. All rights reserved.