hudson.plugins.chucknorris
Class CordellWalkerRecorder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.chucknorris.CordellWalkerRecorder
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class CordellWalkerRecorder
- extends hudson.tasks.Recorder
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 classes/interfaces inherited from class hudson.tasks.Publisher |
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Method Summary |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project)
Gets the RoundhouseAction as the project action. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Gets the required monitor service. |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Adds RoundhouseAction to the build 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 |
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 |
prebuild |
LOGGER
private static final java.util.logging.Logger LOGGER
- Logger.
factGenerator
private FactGenerator factGenerator
- Fact generator.
CordellWalkerRecorder
@DataBoundConstructor
public CordellWalkerRecorder()
- Constructs a
CordellWalkerRecorder with default
FactGenerator.
CordellWalkerRecorder
public CordellWalkerRecorder(FactGenerator factGenerator)
- Constructs a
CordellWalkerRecorder with specified
FactGenerator.
- Parameters:
factGenerator - the fact generator
getProjectAction
public final hudson.model.Action getProjectAction(hudson.model.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 interface hudson.tasks.BuildStep- Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer
- Parameters:
project - the project
- Returns:
- the project action
perform
public final boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
- Adds RoundhouseAction to the build actions. This is applicable for each
build.
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Parameters:
build - the buildlauncher - the launcherlistener - the listener
- Returns:
- true
- Throws:
java.lang.InterruptedException - when there's an interruption
java.io.IOException - when there's an IO error
getRequiredMonitorService
public final hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Gets the required monitor service.
- Returns:
- the BuildStepMonitor
Copyright © 2009. All Rights Reserved.