Class NaginatorListener
- java.lang.Object
-
- hudson.model.listeners.RunListener<AbstractBuild<?,?>>
-
- com.chikli.hudson.plugin.naginator.NaginatorListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class NaginatorListener extends RunListener<AbstractBuild<?,?>>
- 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 Constructor Description NaginatorListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
calculateRetryCount(Run<?,?> r)
boolean
canSchedule(Run build, NaginatorPublisher naginator)
Deprecated.useNaginatorScheduleAction.shouldSchedule(Run, TaskListener, int)
to control scheduling.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.Environment
setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onDeleted, onFinalized, onInitialize, onStarted, register, unregister
-
-
-
-
Method Detail
-
onCompleted
public void onCompleted(AbstractBuild<?,?> build, @NonNull TaskListener listener)
- 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 public boolean canSchedule(Run build, NaginatorPublisher naginator)
Deprecated.useNaginatorScheduleAction.shouldSchedule(Run, TaskListener, int)
to control scheduling.
-
calculateRetryCount
public static int calculateRetryCount(@NonNull Run<?,?> r)
-
scheduleMatrixBuild
@Deprecated public boolean scheduleMatrixBuild(AbstractBuild<?,?> build, List<hudson.matrix.Combination> combinations, int n)
Deprecated.useNaginatorScheduleAction
to make a build rescheduled.
-
scheduleBuild
@Deprecated public boolean scheduleBuild(AbstractBuild<?,?> build, int n)
Deprecated.useNaginatorScheduleAction
to make a build rescheduled.Wrapper method for mocking purposes.
-
-