Class NaginatorListener
java.lang.Object
hudson.model.listeners.RunListener<AbstractBuild<?,?>>
com.chikli.hudson.plugin.naginator.NaginatorListener
- All Implemented Interfaces:
ExtensionPoint
- Author:
- Nicolas De loof
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateRetryCount(Run<?, ?> r) booleancanSchedule(Run build, NaginatorPublisher naginator) Deprecated.voidonCompleted(AbstractBuild<?, ?> build, TaskListener listener) booleanscheduleBuild(AbstractBuild<?, ?> build, int n) Deprecated.useNaginatorScheduleActionto make a build rescheduled.booleanscheduleMatrixBuild(AbstractBuild<?, ?> build, List<hudson.matrix.Combination> combinations, int n) Deprecated.useNaginatorScheduleActionto make a build rescheduled.setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.model.listeners.RunListener
all, allowLoad, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onDeleted, onFinalized, onInitialize, onStarted, register, unregister
-
Constructor Details
-
NaginatorListener
public NaginatorListener()
-
-
Method Details
-
onCompleted
- Overrides:
onCompletedin classRunListener<AbstractBuild<?,?>>
-
setUpEnvironment
public Environment setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException - Overrides:
setUpEnvironmentin classRunListener<AbstractBuild<?,?>> - Throws:
IOExceptionInterruptedExceptionRun.RunnerAbortedException
-
canSchedule
Deprecated.useNaginatorScheduleAction.shouldSchedule(Run, TaskListener, int)to control scheduling. -
calculateRetryCount
-
scheduleMatrixBuild
@Deprecated public boolean scheduleMatrixBuild(AbstractBuild<?, ?> build, List<hudson.matrix.Combination> combinations, int n) Deprecated.useNaginatorScheduleActionto make a build rescheduled. -
scheduleBuild
Deprecated.useNaginatorScheduleActionto make a build rescheduled.Wrapper method for mocking purposes.
-
NaginatorScheduleAction.shouldSchedule(Run, TaskListener, int)to control scheduling.