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 https://www.imdb.com/character/ch0038386/.
- Author:
- cliffano
-
Nested Class Summary
Nested classes/interfaces inherited from class Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aCordellWalkerRecorderwith defaultFactGenerator.CordellWalkerRecorder(FactGenerator factGenerator) Constructs aCordellWalkerRecorderwith specifiedFactGenerator. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.perform(Run<?, ?> run, TaskListener listener) Adds a RoundhouseAction to the run, replacing any earlier one so that calling the step more than once still shows a single fact, and prints the fact to the build log.protected ObjectRecreates the transientFactGeneratorafter the recorder is loaded from a job's config.xml.Methods inherited from class Recorder
getDescriptorMethods inherited from class Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuildMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BuildStep
getProjectAction, getProjectActions, prebuildMethods inherited from interface SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
CordellWalkerRecorder
@DataBoundConstructor public CordellWalkerRecorder()Constructs aCordellWalkerRecorderwith defaultFactGenerator. -
CordellWalkerRecorder
Constructs aCordellWalkerRecorderwith specifiedFactGenerator.- Parameters:
factGenerator- the fact generator
-
-
Method Details
-
readResolve
Recreates the transientFactGeneratorafter the recorder is loaded from a job's config.xml.- Returns:
- this recorder
-
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
-
perform
Adds a RoundhouseAction to the run, replacing any earlier one so that calling the step more than once still shows a single fact, and prints the fact to the build log.- Parameters:
run- the runlistener- the listener to print the fact to, may benull- Returns:
- the fact, in the controller's default locale
-