Package hudson.tasks
Class Builder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Direct Known Subclasses:
CommandInterpreter
,Maven
public abstract class Builder
extends BuildStepCompatibilityLayer
implements Describable<Builder>, ExtensionPoint
BuildStep
s that perform the actual build.
To register a custom Builder
from a plugin,
put Extension
on your descriptor.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DescriptorExtensionList<Builder,
Descriptor<Builder>> all()
Returns all the registeredBuilder
descriptors.Gets the descriptor for this instance.ReturnsBuildStepMonitor.NONE
by default, asBuilder
s normally don't depend on its previous result.boolean
prebuild
(Build build, BuildListener listener) Default implementation that does nothing.Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prebuild
Default implementation that does nothing.- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
getRequiredMonitorService
ReturnsBuildStepMonitor.NONE
by default, asBuilder
s normally don't depend on its previous result.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getDescriptor
Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, so ifa.getClass() == b.getClass()
then by defaulta.getDescriptor() == b.getDescriptor()
as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptor
in interfaceDescribable<Builder>
-
all
Returns all the registeredBuilder
descriptors.
-