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
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.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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
ConstructorsConstructorDescriptionConstructs aCordellWalkerRecorderwith defaultFactGenerator.CordellWalkerRecorder(FactGenerator factGenerator) Constructs aCordellWalkerRecorderwith specifiedFactGenerator. -
Method Summary
Modifier and TypeMethodDescriptionfinal ActiongetProjectAction(AbstractProject<?, ?> project) Gets the RoundhouseAction as the project action.final BuildStepMonitorGets the required monitor service.final booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Adds RoundhouseAction to the build actions.voidAdds RoundhouseAction to the run actions.final voidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Adds RoundhouseAction to the run actions.Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
CordellWalkerRecorder
@DataBoundConstructor public CordellWalkerRecorder()Constructs aCordellWalkerRecorderwith defaultFactGenerator. -
CordellWalkerRecorder
Constructs aCordellWalkerRecorderwith specifiedFactGenerator.- Parameters:
factGenerator- the fact generator
-
-
Method Details
-
getProjectAction
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:
getProjectActionin interfaceBuildStep- Overrides:
getProjectActionin classBuildStepCompatibilityLayer- Parameters:
project- the project- Returns:
- the project action
-
perform
public final boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionAdds RoundhouseAction to the build actions. This is applicable for each build.- Specified by:
performin interfaceBuildStep- Overrides:
performin 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, IOExceptionAdds RoundhouseAction to the run actions. This is applicable for each run.- Specified by:
performin 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
Gets the required monitor service.- Specified by:
getRequiredMonitorServicein interfaceBuildStep- Returns:
- the BuildStepMonitor
-
perform
Adds RoundhouseAction to the run actions. This is applicable for each run.- Parameters:
run- the run
-