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 int
calculateRetryCount
(Run<?, ?> r) boolean
canSchedule
(Run build, NaginatorPublisher naginator) Deprecated.void
onCompleted
(AbstractBuild<?, ?> build, TaskListener listener) boolean
scheduleBuild
(AbstractBuild<?, ?> build, int n) Deprecated.useNaginatorScheduleAction
to make a build rescheduled.boolean
scheduleMatrixBuild
(AbstractBuild<?, ?> build, List<hudson.matrix.Combination> combinations, int n) Deprecated.useNaginatorScheduleAction
to 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:
onCompleted
in classRunListener<AbstractBuild<?,
?>>
-
setUpEnvironment
public Environment setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException - Overrides:
setUpEnvironment
in classRunListener<AbstractBuild<?,
?>> - Throws:
IOException
InterruptedException
Run.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.useNaginatorScheduleAction
to make a build rescheduled. -
scheduleBuild
Deprecated.useNaginatorScheduleAction
to make a build rescheduled.Wrapper method for mocking purposes.
-
NaginatorScheduleAction.shouldSchedule(Run, TaskListener, int)
to control scheduling.