Class NaginatorPublisherScheduleAction
java.lang.Object
hudson.model.InvisibleAction
com.chikli.hudson.plugin.naginator.NaginatorScheduleAction
com.chikli.hudson.plugin.naginator.NaginatorPublisherScheduleAction
- All Implemented Interfaces:
Action,ModelObject
Used from
NaginatorPublisher to mark a build to be reshceduled.- Since:
- 1.16
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanDeprecated.booleanbooleanshouldSchedule(Run<?, ?> run, TaskListener listener, int retryCount) Tests whetherNaginatorListenershould reschedule the build.booleanshouldScheduleForMatrixRun(hudson.matrix.MatrixRun run, TaskListener listener) A test for each child builds of multi-configuration builds.Methods inherited from class com.chikli.hudson.plugin.naginator.NaginatorScheduleAction
getDelay, getMaxSchedule, isRerunMatrixPartMethods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
NaginatorPublisherScheduleAction
-
-
Method Details
-
readResolve
-
getRegexpForRerun
-
isRerunIfUnstable
public boolean isRerunIfUnstable() -
isCheckRegexp
public boolean isCheckRegexp() -
isRegexpForMatrixParent
Deprecated. -
getRegexpForMatrixStrategy
- Since:
- 1.17
-
shouldSchedule
public boolean shouldSchedule(@NonNull Run<?, ?> run, @NonNull TaskListener listener, int retryCount) Description copied from class:NaginatorScheduleActionTests whetherNaginatorListenershould reschedule the build. You can override this method to reschedule the build conditionally.retryCountis passed with 0 when this is the first time to reschedule the build.- Overrides:
shouldSchedulein classNaginatorScheduleAction- Parameters:
run- a build to test. never be aMatrixRunlistener- 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 TaskListener listener) Description copied from class:NaginatorScheduleActionA test for each child builds of multi-configuration builds. You can filter child builds to reschedule.- Overrides:
shouldScheduleForMatrixRunin classNaginatorScheduleAction- Parameters:
run- multi-configuration build to test- Returns:
trueif should be scheduled
-
getNoChildStrategy
- Overrides:
getNoChildStrategyin classNaginatorScheduleAction- Returns:
- how to do when no children to rerun for a matrix project.
-
getRegexpForMatrixStrategy()