Package hudson.plugins.chucknorris
Class CordellWalkerRecorder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.chucknorris.CordellWalkerRecorder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class CordellWalkerRecorder extends Recorder implements SimpleBuildStep
This class associates a RoundhouseAction to a job or a build. For more info on Cordell Walker, check out http://www.imdb.com/character/ch0038386/.- Author:
- cliffano
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description CordellWalkerRecorder()
Constructs aCordellWalkerRecorder
with defaultFactGenerator
.CordellWalkerRecorder(FactGenerator factGenerator)
Constructs aCordellWalkerRecorder
with specifiedFactGenerator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
getProjectAction(AbstractProject<?,?> project)
Gets the RoundhouseAction as the project action.BuildStepMonitor
getRequiredMonitorService()
Gets the required monitor service.boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
Adds RoundhouseAction to the build actions.void
perform(Run<?,?> run)
Adds RoundhouseAction to the run actions.void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
Adds RoundhouseAction to the run actions.-
Methods inherited from class hudson.tasks.Recorder
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
CordellWalkerRecorder
@DataBoundConstructor public CordellWalkerRecorder()
Constructs aCordellWalkerRecorder
with defaultFactGenerator
.
-
CordellWalkerRecorder
public CordellWalkerRecorder(FactGenerator factGenerator)
Constructs aCordellWalkerRecorder
with specifiedFactGenerator
.- Parameters:
factGenerator
- the fact generator
-
-
Method Detail
-
getProjectAction
public final Action getProjectAction(AbstractProject<?,?> project)
Gets the RoundhouseAction as the project action. This is applicable for each job and only when there's at least one build in the job.- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
- Parameters:
project
- the project- Returns:
- the project action
-
perform
public final boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
Adds RoundhouseAction to the build actions. This is applicable for each build.- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Parameters:
build
- the buildlauncher
- the launcherlistener
- the listener- Returns:
- true
- Throws:
InterruptedException
- when there's an interruptionIOException
- when there's an IO error
-
perform
public final void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
Adds RoundhouseAction to the run actions. This is applicable for each run.- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- the runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Throws:
InterruptedException
- when there's an interruptionIOException
- when there's an IO error
-
getRequiredMonitorService
public final BuildStepMonitor getRequiredMonitorService()
Gets the required monitor service.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Returns:
- the BuildStepMonitor
-
perform
public void perform(Run<?,?> run)
Adds RoundhouseAction to the run actions. This is applicable for each run.- Parameters:
run
- the run
-
-